25
25
outputs :
26
26
docsChange : ${{ steps.docs-change.outputs.DOCS_CHANGE }}
27
27
steps :
28
+ - name : Setup node
29
+ uses : actions/setup-node@v2
30
+ if : ${{ steps.docs-change.outputs.docsChange != 'docs only change' }}
31
+ with :
32
+ node-version : 14
33
+
28
34
- uses : actions/checkout@v2
29
35
with :
30
36
fetch-depth : 25
@@ -50,11 +56,18 @@ jobs:
50
56
runs-on : ubuntu-latest
51
57
needs : build
52
58
steps :
59
+ - name : Setup node
60
+ uses : actions/setup-node@v2
61
+ if : ${{ steps.docs-change.outputs.docsChange != 'docs only change' }}
62
+ with :
63
+ node-version : 14
64
+
53
65
- uses : actions/cache@v2
54
66
id : restore-build
55
67
with :
56
68
path : ./*
57
69
key : ${{ github.sha }}
70
+
58
71
- run : ./scripts/check-manifests.js
59
72
- run : yarn lint
60
73
65
78
env :
66
79
NEXT_TELEMETRY_DISABLED : 1
67
80
steps :
81
+ - name : Setup node
82
+ uses : actions/setup-node@v2
83
+ if : ${{ steps.docs-change.outputs.docsChange != 'docs only change' }}
84
+ with :
85
+ node-version : 14
86
+
68
87
# https://github.com/actions/virtual-environments/issues/1187
69
88
- name : tune linux network
70
89
run : sudo ethtool -K eth0 tx off rx off
@@ -97,6 +116,12 @@ jobs:
97
116
NEXT_TEST_JOB : 1
98
117
HEADLESS : true
99
118
steps :
119
+ - name : Setup node
120
+ uses : actions/setup-node@v2
121
+ if : ${{ steps.docs-change.outputs.docsChange != 'docs only change' }}
122
+ with :
123
+ node-version : 14
124
+
100
125
- uses : actions/cache@v2
101
126
if : ${{needs.build.outputs.docsChange != 'docs only change'}}
102
127
id : restore-build
@@ -120,6 +145,12 @@ jobs:
120
145
matrix :
121
146
group : [1, 2, 3, 4, 5, 6]
122
147
steps :
148
+ - name : Setup node
149
+ uses : actions/setup-node@v2
150
+ if : ${{ steps.docs-change.outputs.docsChange != 'docs only change' }}
151
+ with :
152
+ node-version : 14
153
+
123
154
- run : echo ${{needs.build.outputs.docsChange}}
124
155
125
156
# https://github.com/actions/virtual-environments/issues/1187
@@ -150,6 +181,12 @@ jobs:
150
181
HEADLESS : true
151
182
TEST_ELECTRON : 1
152
183
steps :
184
+ - name : Setup node
185
+ uses : actions/setup-node@v2
186
+ if : ${{ steps.docs-change.outputs.docsChange != 'docs only change' }}
187
+ with :
188
+ node-version : 14
189
+
153
190
- uses : actions/cache@v2
154
191
if : ${{needs.build.outputs.docsChange != 'docs only change'}}
155
192
id : restore-build
@@ -174,6 +211,12 @@ jobs:
174
211
NODE_OPTIONS : ' --unhandled-rejections=strict'
175
212
YARN_COMPRESSION_LEVEL : ' 0'
176
213
steps :
214
+ - name : Setup node
215
+ uses : actions/setup-node@v2
216
+ if : ${{ steps.docs-change.outputs.docsChange != 'docs only change' }}
217
+ with :
218
+ node-version : 14
219
+
177
220
- uses : actions/cache@v2
178
221
if : ${{needs.build.outputs.docsChange != 'docs only change'}}
179
222
id : restore-build
@@ -202,6 +245,12 @@ jobs:
202
245
NEXT_PRIVATE_TEST_WEBPACK4_MODE : 1
203
246
204
247
steps :
248
+ - name : Setup node
249
+ uses : actions/setup-node@v2
250
+ if : ${{ steps.docs-change.outputs.docsChange != 'docs only change' }}
251
+ with :
252
+ node-version : 14
253
+
205
254
# https://github.com/actions/virtual-environments/issues/1187
206
255
- name : tune linux network
207
256
run : sudo ethtool -K eth0 tx off rx off
@@ -225,6 +274,12 @@ jobs:
225
274
BROWSER_NAME : ' firefox'
226
275
NEXT_TELEMETRY_DISABLED : 1
227
276
steps :
277
+ - name : Setup node
278
+ uses : actions/setup-node@v2
279
+ if : ${{ steps.docs-change.outputs.docsChange != 'docs only change' }}
280
+ with :
281
+ node-version : 14
282
+
228
283
- uses : actions/cache@v2
229
284
if : ${{needs.build.outputs.docsChange != 'docs only change'}}
230
285
id : restore-build
@@ -246,6 +301,12 @@ jobs:
246
301
BROWSERSTACK_USERNAME : ${{ secrets.BROWSERSTACK_USERNAME }}
247
302
BROWSERSTACK_ACCESS_KEY : ${{ secrets.BROWSERSTACK_ACCESS_KEY }}
248
303
steps :
304
+ - name : Setup node
305
+ uses : actions/setup-node@v2
306
+ if : ${{ steps.docs-change.outputs.docsChange != 'docs only change' }}
307
+ with :
308
+ node-version : 14
309
+
249
310
# https://github.com/actions/virtual-environments/issues/1187
250
311
- name : tune linux network
251
312
run : sudo ethtool -K eth0 tx off rx off
@@ -272,6 +333,12 @@ jobs:
272
333
BROWSERSTACK_USERNAME : ${{ secrets.BROWSERSTACK_USERNAME }}
273
334
BROWSERSTACK_ACCESS_KEY : ${{ secrets.BROWSERSTACK_ACCESS_KEY }}
274
335
steps :
336
+ - name : Setup node
337
+ uses : actions/setup-node@v2
338
+ if : ${{ steps.docs-change.outputs.docsChange != 'docs only change' }}
339
+ with :
340
+ node-version : 14
341
+
275
342
# https://github.com/actions/virtual-environments/issues/1187
276
343
- name : tune linux network
277
344
run : sudo ethtool -K eth0 tx off rx off
@@ -293,6 +360,12 @@ jobs:
293
360
env :
294
361
NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
295
362
steps :
363
+ - name : Setup node
364
+ uses : actions/setup-node@v2
365
+ if : ${{ steps.docs-change.outputs.docsChange != 'docs only change' }}
366
+ with :
367
+ node-version : 14
368
+
296
369
# https://github.com/actions/virtual-environments/issues/1187
297
370
- name : tune linux network
298
371
run : sudo ethtool -K eth0 tx off rx off
@@ -315,6 +388,12 @@ jobs:
315
388
runs-on : ubuntu-latest
316
389
needs : [publishRelease]
317
390
steps :
391
+ - name : Setup node
392
+ uses : actions/setup-node@v2
393
+ if : ${{ steps.docs-change.outputs.docsChange != 'docs only change' }}
394
+ with :
395
+ node-version : 14
396
+
318
397
- uses : actions/cache@v2
319
398
id : restore-build
320
399
with :
0 commit comments