@@ -63,20 +63,24 @@ jobs:
63
63
- name : Checkout
64
64
uses : actions/checkout@v3
65
65
66
+
67
+ with :
68
+ version : 7
69
+
66
70
- name : Setup Node
67
71
uses : actions/setup-node@v3
68
72
with :
69
73
node-version : 16.x
70
- cache : ' yarn '
74
+ cache : ' pnpm '
71
75
registry-url : https://registry.npmjs.org/
72
76
73
77
- run : corepack enable
74
78
75
79
- name : Install NPM Dependencies
76
- run : yarn install --immutable --network-timeout 300000
80
+ run : pnpm install --frozen-lockfile
77
81
78
82
- name : Build Package
79
- run : yarn tsm scripts/index.ts --tsc --build --cli --api --set-dist-tag="${{ github.event.inputs.disttag }}"
83
+ run : pnpm tsm scripts/index.ts --tsc --build --cli --api --set-dist-tag="${{ github.event.inputs.disttag }}"
80
84
81
85
- name : Print Package Dist Build
82
86
run : tree packages/qwik/dist/
99
103
if-no-files-found : error
100
104
101
105
- name : Build Eslint rules
102
- run : yarn tsm scripts/index.ts --eslint
106
+ run : pnpm tsm scripts/index.ts --eslint
103
107
104
108
- name : Print Eslint rules Dist Build
105
109
run : tree packages/eslint-plugin-qwik/dist/
@@ -126,12 +130,15 @@ jobs:
126
130
if : ${{ needs.changes.outputs.fullbuild == 'true' }}
127
131
uses : actions/checkout@v3
128
132
133
+
134
+ with :
135
+ version : 7
129
136
- name : Setup Node
130
137
if : ${{ needs.changes.outputs.fullbuild == 'true' }}
131
138
uses : actions/setup-node@v3
132
139
with :
133
140
node-version : 16.x
134
- cache : ' yarn '
141
+ cache : ' pnpm '
135
142
registry-url : https://registry.npmjs.org/
136
143
137
144
- if : ${{ needs.changes.outputs.fullbuild == 'true' }}
@@ -164,11 +171,15 @@ jobs:
164
171
165
172
- name : Install NPM Dependencies
166
173
if : ${{ needs.changes.outputs.fullbuild == 'true' }}
167
- run : yarn install --immutable --network-timeout 300000
174
+ run : pnpm install --frozen-lockfile
175
+
176
+
177
+ with :
178
+ version : ' v0.10.3'
168
179
169
180
- name : Build WASM
170
181
if : ${{ needs.changes.outputs.fullbuild == 'true' }}
171
- run : yarn tsm scripts/index.ts --wasm --set-dist-tag="${{ github.event.inputs.disttag }}"
182
+ run : pnpm tsm scripts/index.ts --wasm --set-dist-tag="${{ github.event.inputs.disttag }}"
172
183
173
184
- name : Print WASM Dist Build
174
185
if : ${{ needs.changes.outputs.fullbuild == 'true' }}
@@ -189,18 +200,18 @@ jobs:
189
200
settings :
190
201
- host : macos-latest
191
202
target : x86_64-apple-darwin
192
- build : yarn tsm scripts/index.ts --platform-binding
203
+ build : pnpm tsm scripts/index.ts --platform-binding
193
204
194
205
- host : macos-latest
195
206
target : aarch64-apple-darwin
196
207
build : |
197
208
export SDKROOT=$(xcrun -sdk macosx11.1 --show-sdk-path)
198
209
export MACOSX_DEPLOYMENT_TARGET=$(xcrun -sdk macosx11.1 --show-sdk-platform-version)
199
- yarn tsm scripts/index.ts --platform-binding --platform-target=aarch64-apple-darwin
210
+ pnpm tsm scripts/index.ts --platform-binding --platform-target=aarch64-apple-darwin
200
211
201
212
- host : windows-latest
202
213
target : x86_64-pc-windows-msvc
203
- build : yarn tsm scripts/index.ts --platform-binding
214
+ build : pnpm tsm scripts/index.ts --platform-binding
204
215
205
216
name : Build ${{ matrix.settings.target }}
206
217
runs-on : ${{ matrix.settings.host }}
@@ -212,12 +223,16 @@ jobs:
212
223
if : ${{ needs.changes.outputs.fullbuild == 'true' }}
213
224
uses : actions/checkout@v3
214
225
226
+
227
+ with :
228
+ version : 7
229
+
215
230
- name : Setup Node
216
231
if : ${{ needs.changes.outputs.fullbuild == 'true' }}
217
232
uses : actions/setup-node@v3
218
233
with :
219
234
node-version : 16.x
220
- cache : ' yarn '
235
+ cache : ' pnpm '
221
236
registry-url : https://registry.npmjs.org/
222
237
223
238
- if : ${{ needs.changes.outputs.fullbuild == 'true' }}
@@ -264,7 +279,7 @@ jobs:
264
279
265
280
- name : Install NPM Dependencies
266
281
if : ${{ needs.changes.outputs.fullbuild == 'true' }}
267
- run : yarn install --immutable --network-timeout 300000
282
+ run : pnpm install --frozen-lockfile
268
283
269
284
- name : Build Platform Binding
270
285
if : ${{ needs.changes.outputs.fullbuild == 'true' }}
@@ -345,11 +360,15 @@ jobs:
345
360
- name : Checkout
346
361
uses : actions/checkout@v3
347
362
363
+
364
+ with :
365
+ version : 7
366
+
348
367
- name : Setup Node
349
368
uses : actions/setup-node@v3
350
369
with :
351
370
node-version : 16.x
352
- cache : ' yarn '
371
+ cache : ' pnpm '
353
372
registry-url : https://registry.npmjs.org/
354
373
355
374
- run : corepack enable
@@ -373,18 +392,18 @@ jobs:
373
392
mv dist-dev-eslint-plugin-qwik/* packages/eslint-plugin-qwik/dist/
374
393
375
394
- name : Install NPM Dependencies
376
- run : yarn install --immutable --network-timeout 300000
395
+ run : pnpm install --frozen-lockfile
377
396
378
397
- name : Dry-Run Publish @builder.io/qwik
379
398
if : ${{ github.event_name != 'workflow_dispatch' }}
380
- run : yarn tsm scripts/index.ts --set-dist-tag="${{ github.event.inputs.disttag }}" --release --dry-run
399
+ run : pnpm tsm scripts/index.ts --set-dist-tag="${{ github.event.inputs.disttag }}" --release --dry-run
381
400
env :
382
401
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
383
402
NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
384
403
385
404
- name : Publish @builder.io/qwik
386
405
if : ${{ github.event_name == 'workflow_dispatch' }}
387
- run : yarn tsm scripts/index.ts --set-dist-tag="${{ github.event.inputs.disttag }}" --release
406
+ run : pnpm tsm scripts/index.ts --set-dist-tag="${{ github.event.inputs.disttag }}" --release
388
407
env :
389
408
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
390
409
NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
@@ -393,7 +412,7 @@ jobs:
393
412
if : ${{ needs.changes.outputs.fullbuild == 'true' && github.event_name == 'push' }}
394
413
env :
395
414
API_TOKEN_GITHUB : ${{ secrets.API_TOKEN_GITHUB }}
396
- run : yarn run qwik-save-artifacts
415
+ run : pnpm run qwik-save-artifacts
397
416
398
417
# ########### E2E TEST ############
399
418
test-e2e :
@@ -419,12 +438,16 @@ jobs:
419
438
if : ${{ needs.changes.outputs.fullbuild == 'true' }}
420
439
uses : actions/checkout@v3
421
440
441
+
442
+ with :
443
+ version : 7
444
+
422
445
- name : Setup Node ${{ matrix.settings.node }}
423
446
if : ${{ needs.changes.outputs.fullbuild == 'true' }}
424
447
uses : actions/setup-node@v3
425
448
with :
426
449
node-version : ${{ matrix.settings.node }}
427
- cache : ' yarn '
450
+ cache : ' pnpm '
428
451
registry-url : https://registry.npmjs.org/
429
452
430
453
- if : ${{ needs.changes.outputs.fullbuild == 'true' }}
@@ -447,19 +470,19 @@ jobs:
447
470
448
471
- name : Install NPM Dependencies
449
472
if : ${{ needs.changes.outputs.fullbuild == 'true' }}
450
- run : yarn install --immutable --network-timeout 300000
473
+ run : pnpm install --frozen-lockfile
451
474
452
475
- name : Install Playwright
453
476
if : ${{ needs.changes.outputs.fullbuild == 'true' }}
454
477
run : npx playwright install ${{ matrix.settings.browser }} && npx playwright install-deps ${{ matrix.settings.browser }}
455
478
456
479
- name : Playwright E2E Tests
457
480
if : ${{ needs.changes.outputs.fullbuild == 'true' }}
458
- run : yarn run test.e2e.${{ matrix.settings.browser }}
481
+ run : pnpm run test.e2e.${{ matrix.settings.browser }}
459
482
460
483
- name : Validate Create Qwik Cli
461
484
if : ${{ needs.changes.outputs.fullbuild == 'true' }}
462
- run : yarn cli.validate
485
+ run : pnpm cli.validate
463
486
464
487
# ########### UNIT TEST ############
465
488
test-unit :
@@ -472,20 +495,24 @@ jobs:
472
495
- name : Checkout
473
496
uses : actions/checkout@v3
474
497
498
+
499
+ with :
500
+ version : 7
501
+
475
502
- name : Setup Node
476
503
uses : actions/setup-node@v3
477
504
with :
478
505
node-version : 16.x
479
- cache : ' yarn '
506
+ cache : ' pnpm '
480
507
registry-url : https://registry.npmjs.org/
481
508
482
509
- run : corepack enable
483
510
484
511
- name : Install NPM Dependencies
485
- run : yarn install --immutable --network-timeout 300000
512
+ run : pnpm install --frozen-lockfile
486
513
487
514
- name : Unit Tests
488
- run : yarn run test.unit
515
+ run : pnpm run test.unit
489
516
490
517
# ########## VALIDATE RUST ############
491
518
validate-rust :
@@ -560,22 +587,26 @@ jobs:
560
587
- name : Checkout
561
588
uses : actions/checkout@v3
562
589
590
+
591
+ with :
592
+ version : 7
593
+
563
594
- name : Setup Node
564
595
uses : actions/setup-node@v3
565
596
with :
566
597
node-version : 16.x
567
- cache : ' yarn '
598
+ cache : ' pnpm '
568
599
registry-url : https://registry.npmjs.org/
569
600
570
601
- run : corepack enable
571
602
572
603
- name : Install NPM Dependencies
573
- run : yarn install --immutable --network-timeout 300000
604
+ run : pnpm install --frozen-lockfile
574
605
575
606
- name : Prettier Check
576
607
if : ${{ always() }}
577
- run : yarn run lint.prettier
608
+ run : pnpm run lint.prettier
578
609
579
610
- name : ESLint Check
580
611
if : ${{ always() }}
581
- run : yarn run lint.eslint
612
+ run : pnpm run lint.eslint
0 commit comments