@@ -144,6 +144,7 @@ jobs:
144
144
path : |
145
145
**/node_modules
146
146
key : runtime-node_modules-v6-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
147
+ fail-on-cache-miss : true
147
148
- name : Ensure clean build directory
148
149
run : rm -rf build
149
150
- run : yarn install --frozen-lockfile
@@ -171,6 +172,7 @@ jobs:
171
172
path : |
172
173
**/node_modules
173
174
key : runtime-node_modules-v6-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
175
+ fail-on-cache-miss : true
174
176
- name : Ensure clean build directory
175
177
run : rm -rf build
176
178
- run : yarn install --frozen-lockfile
@@ -200,6 +202,7 @@ jobs:
200
202
path : |
201
203
**/node_modules
202
204
key : runtime-node_modules-v6-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
205
+ fail-on-cache-miss : true
203
206
- name : Ensure clean build directory
204
207
run : rm -rf build
205
208
- run : yarn install --frozen-lockfile
@@ -258,6 +261,7 @@ jobs:
258
261
path : |
259
262
**/node_modules
260
263
key : runtime-and-compiler-node_modules-v6-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock', 'compiler/yarn.lock') }}
264
+ fail-on-cache-miss : true
261
265
- name : Ensure clean build directory
262
266
run : rm -rf build
263
267
- run : yarn install --frozen-lockfile
@@ -299,6 +303,7 @@ jobs:
299
303
path : |
300
304
**/node_modules
301
305
key : runtime-and-compiler-node_modules-v6-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock', 'compiler/yarn.lock') }}
306
+ fail-on-cache-miss : true
302
307
- name : Ensure clean build directory
303
308
run : rm -rf build
304
309
- run : yarn install --frozen-lockfile
@@ -380,6 +385,7 @@ jobs:
380
385
path : |
381
386
**/node_modules
382
387
key : runtime-and-compiler-node_modules-v6-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock', 'compiler/yarn.lock') }}
388
+ fail-on-cache-miss : true
383
389
- name : Ensure clean build directory
384
390
run : rm -rf build
385
391
- run : yarn install --frozen-lockfile
@@ -416,6 +422,7 @@ jobs:
416
422
path : |
417
423
**/node_modules
418
424
key : runtime-node_modules-v6-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
425
+ fail-on-cache-miss : true
419
426
- name : Ensure clean build directory
420
427
run : rm -rf build
421
428
- run : yarn install --frozen-lockfile
@@ -466,6 +473,7 @@ jobs:
466
473
path : |
467
474
**/node_modules
468
475
key : runtime-node_modules-v6-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
476
+ fail-on-cache-miss : true
469
477
- name : Ensure clean build directory
470
478
run : rm -rf build
471
479
- run : yarn install --frozen-lockfile
@@ -503,6 +511,7 @@ jobs:
503
511
path : |
504
512
**/node_modules
505
513
key : runtime-node_modules-v6-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
514
+ fail-on-cache-miss : true
506
515
- name : Ensure clean build directory
507
516
run : rm -rf build
508
517
- run : yarn install --frozen-lockfile
@@ -536,7 +545,7 @@ jobs:
536
545
with :
537
546
path : |
538
547
**/node_modules
539
- key : fixtures_dom-node_modules-v6-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
548
+ key : fixtures_dom-node_modules-v6-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock', 'fixtures/dom/yarn.lock' ) }}
540
549
- name : Ensure clean build directory
541
550
run : rm -rf build
542
551
- run : yarn --cwd fixtures/dom install --frozen-lockfile
@@ -580,7 +589,7 @@ jobs:
580
589
with :
581
590
path : |
582
591
**/node_modules
583
- key : fixtures_flight-node_modules-v6-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
592
+ key : fixtures_flight-node_modules-v6-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock', 'fixtures/flight/yarn.lock' ) }}
584
593
- name : Ensure clean build directory
585
594
run : rm -rf build
586
595
- run : yarn install --frozen-lockfile
@@ -655,6 +664,7 @@ jobs:
655
664
path : |
656
665
**/node_modules
657
666
key : runtime-node_modules-v6-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
667
+ fail-on-cache-miss : true
658
668
- name : Ensure clean build directory
659
669
run : rm -rf build
660
670
- run : yarn install --frozen-lockfile
@@ -709,6 +719,7 @@ jobs:
709
719
path : |
710
720
**/node_modules
711
721
key : runtime-node_modules-v6-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
722
+ fail-on-cache-miss : true
712
723
- name : Ensure clean build directory
713
724
run : rm -rf build
714
725
- run : yarn install --frozen-lockfile
@@ -730,7 +741,7 @@ jobs:
730
741
sizebot :
731
742
if : ${{ github.event_name == 'pull_request' && github.ref_name != 'main' && github.event.pull_request.base.ref == 'main' }}
732
743
name : Run sizebot
733
- needs : [build_and_lint, runtime_node_modules_cache ]
744
+ needs : [build_and_lint]
734
745
runs-on : ubuntu-latest
735
746
steps :
736
747
- uses : actions/checkout@v4
@@ -742,7 +753,7 @@ jobs:
742
753
cache : yarn
743
754
cache-dependency-path : yarn.lock
744
755
- name : Restore cached node_modules
745
- uses : actions/cache/restore @v4
756
+ uses : actions/cache@v4 # note: this does not reuse centralized cache since it has unique cache key
746
757
id : node_modules
747
758
with :
748
759
path : |
@@ -768,8 +779,6 @@ jobs:
768
779
run : ls -R base-build
769
780
- name : Ensure clean build directory
770
781
run : rm -rf build
771
- - run : yarn install --frozen-lockfile
772
- if : steps.node_modules.outputs.cache-hit != 'true'
773
782
- name : Restore archived build for PR
774
783
uses : actions/download-artifact@v4
775
784
with :
0 commit comments