47
47
NX_CACHE_RESTORE_KEYS : |
48
48
nx-Linux-${{ github.ref }}-${{ github.event.inputs.commit || github.sha }}
49
49
nx-Linux-${{ github.ref }}
50
- nx-Linux-refs/heads/develop
51
50
nx-Linux
52
51
53
52
jobs :
@@ -173,6 +172,7 @@ jobs:
173
172
key : ${{ steps.compute_lockfile_hash.outputs.hash }}
174
173
175
174
- name : Install dependencies
175
+ if : steps.cache_dependencies.outputs.cache_hit != 'true'
176
176
run : yarn install --ignore-engines --frozen-lockfile
177
177
outputs :
178
178
dependency_cache_key : ${{ steps.compute_lockfile_hash.outputs.hash }}
@@ -212,7 +212,7 @@ jobs:
212
212
needs.job_get_metadata.outputs.is_release == 'false' &&
213
213
needs.job_get_metadata.outputs.force_skip_cache == 'false'
214
214
with :
215
- path : node_modules/.cache/nx
215
+ path : .nxcache
216
216
key : nx-Linux-${{ github.ref }}-${{ env.HEAD_COMMIT }}
217
217
# On develop branch, we want to _store_ the cache (so it can be used by other branches), but never _restore_ from it
218
218
restore-keys :
@@ -244,12 +244,12 @@ jobs:
244
244
- name : Set up Node
245
245
uses : volta-cli/action@v4
246
246
- name : Check dependency cache
247
- uses : actions/cache@v3
247
+ uses : actions/cache/restore @v3
248
248
with :
249
249
path : ${{ env.CACHED_DEPENDENCY_PATHS }}
250
250
key : ${{ needs.job_build.outputs.dependency_cache_key }}
251
251
- name : Check build cache
252
- uses : actions/cache@v3
252
+ uses : actions/cache/restore @v3
253
253
with :
254
254
path : ${{ env.CACHED_BUILD_PATHS }}
255
255
key : ${{ env.BUILD_CACHE_KEY }}
@@ -288,12 +288,12 @@ jobs:
288
288
# use Node 14 for now.
289
289
node-version : ' 14'
290
290
- name : Check dependency cache
291
- uses : actions/cache@v3
291
+ uses : actions/cache/restore @v3
292
292
with :
293
293
path : ${{ env.CACHED_DEPENDENCY_PATHS }}
294
294
key : ${{ needs.job_build.outputs.dependency_cache_key }}
295
295
- name : Check build cache
296
- uses : actions/cache@v3
296
+ uses : actions/cache/restore @v3
297
297
with :
298
298
path : ${{ env.CACHED_BUILD_PATHS }}
299
299
key : ${{ env.BUILD_CACHE_KEY }}
@@ -319,12 +319,12 @@ jobs:
319
319
- name : Set up Node
320
320
uses : volta-cli/action@v4
321
321
- name : Check dependency cache
322
- uses : actions/cache@v3
322
+ uses : actions/cache/restore @v3
323
323
with :
324
324
path : ${{ env.CACHED_DEPENDENCY_PATHS }}
325
325
key : ${{ needs.job_build.outputs.dependency_cache_key }}
326
326
- name : Check build cache
327
- uses : actions/cache@v3
327
+ uses : actions/cache/restore @v3
328
328
with :
329
329
path : ${{ env.CACHED_BUILD_PATHS }}
330
330
key : ${{ env.BUILD_CACHE_KEY }}
@@ -344,12 +344,12 @@ jobs:
344
344
- name : Set up Node
345
345
uses : volta-cli/action@v4
346
346
- name : Check dependency cache
347
- uses : actions/cache@v3
347
+ uses : actions/cache/restore @v3
348
348
with :
349
349
path : ${{ env.CACHED_DEPENDENCY_PATHS }}
350
350
key : ${{ needs.job_build.outputs.dependency_cache_key }}
351
351
- name : Check build cache
352
- uses : actions/cache@v3
352
+ uses : actions/cache/restore @v3
353
353
with :
354
354
path : ${{ env.CACHED_BUILD_PATHS }}
355
355
key : ${{ env.BUILD_CACHE_KEY }}
@@ -370,12 +370,12 @@ jobs:
370
370
- name : Set up Node
371
371
uses : volta-cli/action@v4
372
372
- name : Check dependency cache
373
- uses : actions/cache@v3
373
+ uses : actions/cache/restore @v3
374
374
with :
375
375
path : ${{ env.CACHED_DEPENDENCY_PATHS }}
376
376
key : ${{ needs.job_build.outputs.dependency_cache_key }}
377
377
- name : Check build cache
378
- uses : actions/cache@v3
378
+ uses : actions/cache/restore @v3
379
379
with :
380
380
path : ${{ env.CACHED_BUILD_PATHS }}
381
381
key : ${{ env.BUILD_CACHE_KEY }}
@@ -407,12 +407,12 @@ jobs:
407
407
with :
408
408
node-version : ${{ env.DEFAULT_NODE_VERSION }}
409
409
- name : Check dependency cache
410
- uses : actions/cache@v3
410
+ uses : actions/cache/restore @v3
411
411
with :
412
412
path : ${{ env.CACHED_DEPENDENCY_PATHS }}
413
413
key : ${{ needs.job_build.outputs.dependency_cache_key }}
414
414
- name : Check build cache
415
- uses : actions/cache@v3
415
+ uses : actions/cache/restore @v3
416
416
with :
417
417
path : ${{ env.CACHED_BUILD_PATHS }}
418
418
key : ${{ env.BUILD_CACHE_KEY }}
@@ -442,12 +442,12 @@ jobs:
442
442
with :
443
443
node-version : ${{ matrix.node }}
444
444
- name : Check dependency cache
445
- uses : actions/cache@v3
445
+ uses : actions/cache/restore @v3
446
446
with :
447
447
path : ${{ env.CACHED_DEPENDENCY_PATHS }}
448
448
key : ${{ needs.job_build.outputs.dependency_cache_key }}
449
449
- name : Check build cache
450
- uses : actions/cache@v3
450
+ uses : actions/cache/restore @v3
451
451
with :
452
452
path : ${{ env.CACHED_BUILD_PATHS }}
453
453
key : ${{ env.BUILD_CACHE_KEY }}
@@ -480,12 +480,12 @@ jobs:
480
480
with :
481
481
node-version : ${{ matrix.node }}
482
482
- name : Check dependency cache
483
- uses : actions/cache@v3
483
+ uses : actions/cache/restore @v3
484
484
with :
485
485
path : ${{ env.CACHED_DEPENDENCY_PATHS }}
486
486
key : ${{ needs.job_build.outputs.dependency_cache_key }}
487
487
- name : Check build cache
488
- uses : actions/cache@v3
488
+ uses : actions/cache/restore @v3
489
489
with :
490
490
path : ${{ env.CACHED_BUILD_PATHS }}
491
491
key : ${{ env.BUILD_CACHE_KEY }}
@@ -553,12 +553,12 @@ jobs:
553
553
- name : Set up Node
554
554
uses : volta-cli/action@v4
555
555
- name : Check dependency cache
556
- uses : actions/cache@v3
556
+ uses : actions/cache/restore @v3
557
557
with :
558
558
path : ${{ env.CACHED_DEPENDENCY_PATHS }}
559
559
key : ${{ needs.job_build.outputs.dependency_cache_key }}
560
560
- name : Check build cache
561
- uses : actions/cache@v3
561
+ uses : actions/cache/restore @v3
562
562
with :
563
563
path : ${{ env.CACHED_BUILD_PATHS }}
564
564
key : ${{ env.BUILD_CACHE_KEY }}
@@ -611,12 +611,12 @@ jobs:
611
611
- name : Set up Node
612
612
uses : volta-cli/action@v4
613
613
- name : Check dependency cache
614
- uses : actions/cache@v3
614
+ uses : actions/cache/restore @v3
615
615
with :
616
616
path : ${{ env.CACHED_DEPENDENCY_PATHS }}
617
617
key : ${{ needs.job_build.outputs.dependency_cache_key }}
618
618
- name : Check build cache
619
- uses : actions/cache@v3
619
+ uses : actions/cache/restore @v3
620
620
with :
621
621
path : ${{ env.CACHED_BUILD_PATHS }}
622
622
key : ${{ env.BUILD_CACHE_KEY }}
@@ -641,12 +641,12 @@ jobs:
641
641
- name : Set up Node
642
642
uses : volta-cli/action@v4
643
643
- name : Check dependency cache
644
- uses : actions/cache@v3
644
+ uses : actions/cache/restore @v3
645
645
with :
646
646
path : ${{ env.CACHED_DEPENDENCY_PATHS }}
647
647
key : ${{ needs.job_build.outputs.dependency_cache_key }}
648
648
- name : Check build cache
649
- uses : actions/cache@v3
649
+ uses : actions/cache/restore @v3
650
650
with :
651
651
path : ${{ env.CACHED_BUILD_PATHS }}
652
652
key : ${{ env.BUILD_CACHE_KEY }}
@@ -679,12 +679,12 @@ jobs:
679
679
with :
680
680
node-version : ${{ matrix.node }}
681
681
- name : Check dependency cache
682
- uses : actions/cache@v3
682
+ uses : actions/cache/restore @v3
683
683
with :
684
684
path : ${{ env.CACHED_DEPENDENCY_PATHS }}
685
685
key : ${{ needs.job_build.outputs.dependency_cache_key }}
686
686
- name : Check build cache
687
- uses : actions/cache@v3
687
+ uses : actions/cache/restore @v3
688
688
with :
689
689
path : ${{ env.CACHED_BUILD_PATHS }}
690
690
key : ${{ env.BUILD_CACHE_KEY }}
@@ -715,12 +715,12 @@ jobs:
715
715
with :
716
716
node-version : ${{ matrix.node }}
717
717
- name : Check dependency cache
718
- uses : actions/cache@v3
718
+ uses : actions/cache/restore @v3
719
719
with :
720
720
path : ${{ env.CACHED_DEPENDENCY_PATHS }}
721
721
key : ${{ needs.job_build.outputs.dependency_cache_key }}
722
722
- name : Check build cache
723
- uses : actions/cache@v3
723
+ uses : actions/cache/restore @v3
724
724
with :
725
725
path : ${{ env.CACHED_BUILD_PATHS }}
726
726
key : ${{ env.BUILD_CACHE_KEY }}
@@ -749,12 +749,12 @@ jobs:
749
749
- name : Set up Node
750
750
uses : volta-cli/action@v4
751
751
- name : Check dependency cache
752
- uses : actions/cache@v3
752
+ uses : actions/cache/restore @v3
753
753
with :
754
754
path : ${{ env.CACHED_DEPENDENCY_PATHS }}
755
755
key : ${{ needs.job_build.outputs.dependency_cache_key }}
756
756
- name : Check build cache
757
- uses : actions/cache@v3
757
+ uses : actions/cache/restore @v3
758
758
with :
759
759
path : ${{ env.CACHED_BUILD_PATHS }}
760
760
key : ${{ env.BUILD_CACHE_KEY }}
@@ -812,12 +812,12 @@ jobs:
812
812
- name : Set up Node
813
813
uses : volta-cli/action@v4
814
814
- name : Check dependency cache
815
- uses : actions/cache@v3
815
+ uses : actions/cache/restore @v3
816
816
with :
817
817
path : ${{ env.CACHED_DEPENDENCY_PATHS }}
818
818
key : ${{ needs.job_build.outputs.dependency_cache_key }}
819
819
- name : Check build cache
820
- uses : actions/cache@v3
820
+ uses : actions/cache/restore @v3
821
821
with :
822
822
path : ${{ env.CACHED_BUILD_PATHS }}
823
823
key : ${{ env.BUILD_CACHE_KEY }}
0 commit comments