@@ -19,14 +19,9 @@ concurrency:
19
19
20
20
jobs :
21
21
setup :
22
- runs-on : ${{ matrix.os }}
22
+ runs-on : ubuntu-latest
23
23
if : github.event_name == 'push' || !((github.base_ref == '2.x') && github.head_ref == 'dev')
24
24
25
- strategy :
26
- matrix :
27
- # os: [ubuntu-latest, macos-latest, windows-latest]
28
- os : [ubuntu-latest]
29
-
30
25
steps :
31
26
- uses : actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
32
27
with :
@@ -51,14 +46,10 @@ jobs:
51
46
packages/*/node_modules
52
47
distributions/*/node_modules
53
48
packages/*/dist
54
- key : ${{ matrix.os }} -node-v18-nuxt-${{ github.sha }}
49
+ key : ubuntu-latest -node-v18-nuxt-${{ github.sha }}
55
50
56
51
lint :
57
- runs-on : ${{ matrix.os }}
58
-
59
- strategy :
60
- matrix :
61
- os : [ubuntu-latest]
52
+ runs-on : ubuntu-latest
62
53
63
54
steps :
64
55
- uses : actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
@@ -76,18 +67,14 @@ jobs:
76
67
packages/*/node_modules
77
68
distributions/*/node_modules
78
69
packages/*/dist
79
- key : ${{ matrix.os }} -node-v18-nuxt-${{ github.sha }}
70
+ key : ubuntu-latest -node-v18-nuxt-${{ github.sha }}
80
71
81
72
- name : lint
82
73
run : yarn test:lint
83
74
needs : setup
84
75
85
76
typecheck :
86
- runs-on : ${{ matrix.os }}
87
-
88
- strategy :
89
- matrix :
90
- os : [ubuntu-latest]
77
+ runs-on : ubuntu-latest
91
78
92
79
steps :
93
80
- uses : actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
105
92
packages/*/node_modules
106
93
distributions/*/node_modules
107
94
packages/*/dist
108
- key : ${{ matrix.os }} -node-v18-nuxt-${{ github.sha }}
95
+ key : ubuntu-latest -node-v18-nuxt-${{ github.sha }}
109
96
110
97
- name : test types
111
98
run : yarn test:types
@@ -115,11 +102,7 @@ jobs:
115
102
needs : setup
116
103
117
104
audit :
118
- runs-on : ${{ matrix.os }}
119
-
120
- strategy :
121
- matrix :
122
- os : [ubuntu-latest]
105
+ runs-on : ubuntu-latest
123
106
124
107
steps :
125
108
- uses : actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
@@ -137,19 +120,14 @@ jobs:
137
120
packages/*/node_modules
138
121
distributions/*/node_modules
139
122
packages/*/dist
140
- key : ${{ matrix.os }} -node-v18-nuxt-${{ github.sha }}
123
+ key : ubuntu-latest -node-v18-nuxt-${{ github.sha }}
141
124
142
125
- name : audit
143
126
run : yarn run audit
144
127
needs : setup
145
128
146
129
test-unit :
147
- runs-on : ${{ matrix.os }}
148
-
149
- strategy :
150
- matrix :
151
- # os: [ubuntu-latest, macos-latest, windows-latest]
152
- os : [ubuntu-latest]
130
+ runs-on : ubuntu-latest
153
131
154
132
steps :
155
133
- uses : actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
@@ -167,7 +145,7 @@ jobs:
167
145
packages/*/node_modules
168
146
distributions/*/node_modules
169
147
packages/*/dist
170
- key : ${{ matrix.os }} -node-v18-nuxt-${{ github.sha }}
148
+ key : ubuntu-latest -node-v18-nuxt-${{ github.sha }}
171
149
172
150
- name : test unit
173
151
run : yarn test:unit --coverage
@@ -180,12 +158,7 @@ jobs:
180
158
needs : setup
181
159
182
160
build :
183
- runs-on : ${{ matrix.os }}
184
-
185
- strategy :
186
- matrix :
187
- # os: [ubuntu-latest, macos-latest, windows-latest]
188
- os : [ubuntu-latest]
161
+ runs-on : ubuntu-latest
189
162
190
163
env :
191
164
NODE_OPTIONS : " --max_old_space_size=4096"
@@ -206,24 +179,20 @@ jobs:
206
179
packages/*/node_modules
207
180
distributions/*/node_modules
208
181
packages/*/dist
209
- key : ${{ matrix.os }} -node-v18-nuxt-${{ github.sha }}
182
+ key : ubuntu-latest -node-v18-nuxt-${{ github.sha }}
210
183
211
184
- name : build
212
185
run : yarn test:fixtures -i
213
186
214
187
- name : Save fixtures
215
188
uses : actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
216
189
with :
217
- name : fixtures-${{ matrix.os }} -node-v18
190
+ name : fixtures-ubuntu-latest -node-v18
218
191
path : test/fixtures
219
192
needs : setup
220
193
221
194
lint-app :
222
- runs-on : ${{ matrix.os }}
223
-
224
- strategy :
225
- matrix :
226
- os : [ubuntu-latest]
195
+ runs-on : ubuntu-latest
227
196
228
197
steps :
229
198
- uses : actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
@@ -241,25 +210,20 @@ jobs:
241
210
packages/*/node_modules
242
211
distributions/*/node_modules
243
212
packages/*/dist
244
- key : ${{ matrix.os }} -node-v18-nuxt-${{ github.sha }}
213
+ key : ubuntu-latest -node-v18-nuxt-${{ github.sha }}
245
214
246
215
- name : restore fixtures
247
216
uses : actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7
248
217
with :
249
- name : fixtures-${{ matrix.os }} -node-v18
218
+ name : fixtures-ubuntu-latest -node-v18
250
219
path : test/fixtures
251
220
252
221
- name : lint app
253
222
run : yarn lint:app
254
223
needs : build
255
224
256
225
test-dev :
257
- runs-on : ${{ matrix.os }}
258
-
259
- strategy :
260
- matrix :
261
- # os: [ubuntu-latest, macos-latest, windows-latest]
262
- os : [ubuntu-latest]
226
+ runs-on : ubuntu-latest
263
227
264
228
steps :
265
229
- uses : actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
@@ -277,25 +241,20 @@ jobs:
277
241
packages/*/node_modules
278
242
distributions/*/node_modules
279
243
packages/*/dist
280
- key : ${{ matrix.os }} -node-v18-nuxt-${{ github.sha }}
244
+ key : ubuntu-latest -node-v18-nuxt-${{ github.sha }}
281
245
282
246
- name : restore fixtures
283
247
uses : actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7
284
248
with :
285
- name : fixtures-${{ matrix.os }} -node-v18
249
+ name : fixtures-ubuntu-latest -node-v18
286
250
path : test/fixtures
287
251
288
252
- name : test dev
289
253
run : yarn test:dev
290
254
needs : build
291
255
292
256
test-e2e :
293
- runs-on : ${{ matrix.os }}
294
-
295
- strategy :
296
- matrix :
297
- # os: [ubuntu-latest, macos-latest, windows-latest]
298
- os : [ubuntu-latest]
257
+ runs-on : ubuntu-latest
299
258
300
259
steps :
301
260
- uses : actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
@@ -313,26 +272,24 @@ jobs:
313
272
packages/*/node_modules
314
273
distributions/*/node_modules
315
274
packages/*/dist
316
- key : ${{ matrix.os }} -node-v18-nuxt-${{ github.sha }}
275
+ key : ubuntu-latest -node-v18-nuxt-${{ github.sha }}
317
276
318
277
- name : restore fixtures
319
278
uses : actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7
320
279
with :
321
- name : fixtures-${{ matrix.os }} -node-v18
280
+ name : fixtures-ubuntu-latest -node-v18
322
281
path : test/fixtures
323
282
324
283
- name : test e2e
325
284
run : yarn test:e2e
326
285
needs : build
327
286
328
287
release-commit :
288
+ if : github.event_name == 'push' && contains(github.event.head_commit.message, '[release]')
289
+ needs : [lint-app, test-dev, test-unit, test-e2e]
290
+ runs-on : ubuntu-latest
329
291
permissions :
330
292
id-token : write
331
- if : github.event_name == 'push' && contains(github.event.head_commit.message, '[release]')
332
- runs-on : ${{ matrix.os }}
333
- strategy :
334
- matrix :
335
- os : [ubuntu-latest]
336
293
337
294
steps :
338
295
- uses : actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
@@ -351,7 +308,7 @@ jobs:
351
308
packages/*/node_modules
352
309
distributions/*/node_modules
353
310
packages/*/dist
354
- key : ${{ matrix.os }} -node-v18-nuxt-${{ github.sha }}
311
+ key : ubuntu-latest -node-v18-nuxt-${{ github.sha }}
355
312
356
313
- uses : actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
357
314
with :
@@ -372,4 +329,46 @@ jobs:
372
329
ref : ${{ github.ref }}
373
330
NODE_AUTH_TOKEN : ${{secrets.NODE_AUTH_TOKEN}}
374
331
NPM_CONFIG_PROVENANCE : true
332
+
333
+ release-nightly :
334
+ if : github.repository_owner == 'nuxt' && github.event_name == 'push'
375
335
needs : [lint-app, test-dev, test-unit, test-e2e]
336
+ runs-on : ubuntu-latest
337
+ permissions :
338
+ id-token : write
339
+ steps :
340
+ - uses : actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
341
+ with :
342
+ ref : " refs/heads/dev"
343
+ fetch-depth : 0 # All history
344
+
345
+ - name : fetch tags
346
+ run : git fetch --depth=1 origin "+refs/tags/*:refs/tags/*"
347
+
348
+ - name : restore workspace cache
349
+ uses : actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2
350
+ with :
351
+ path : |
352
+ node_modules
353
+ packages/*/node_modules
354
+ distributions/*/node_modules
355
+ packages/*/dist
356
+ key : ubuntu-latest-node-v18-nuxt-${{ github.sha }}
357
+
358
+ - uses : actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
359
+ with :
360
+ node-version : 18
361
+ cache : " yarn"
362
+ registry-url : " https://registry.npmjs.org"
363
+
364
+ - name : bump version
365
+ run : yarn lerna version --yes --no-changelog --no-git-tag-version --no-push --force-publish "*" --loglevel verbose
366
+
367
+ - name : build
368
+ run : PACKAGE_SUFFIX=edge yarn build
369
+
370
+ - name : publish
371
+ run : ./scripts/workspace-run npm publish -q
372
+ env :
373
+ NODE_AUTH_TOKEN : ${{secrets.NODE_AUTH_TOKEN}}
374
+ NPM_CONFIG_PROVENANCE : true
0 commit comments