@@ -25,13 +25,11 @@ jobs:
25
25
- name : Cache node modules
26
26
id : cache-node-modules
27
27
uses : actions/cache@v3
28
- env :
29
- cache-name : cache-node-modules
30
28
with :
31
29
path : " ./node_modules"
32
30
# Use the combo between node version, name, and SHA-256 hash of the lock file as cache key so that
33
31
# if one of them changes the cache is invalidated/discarded
34
- key : ${{ matrix.version }}-build-${{ env. cache-name }} -${{ hashFiles('./package-lock.json') }}
32
+ key : ${{ matrix.version }}-cache-utils-node-modules -${{ hashFiles('./package-lock.json') }}
35
33
- name : Install dependencies
36
34
# We can skip the install if there was a cache hit
37
35
if : steps.cache-node-modules.outputs.cache-hit != 'true'
@@ -71,15 +69,13 @@ jobs:
71
69
- name : Cache node modules
72
70
id : cache-node-modules
73
71
uses : actions/cache@v3
74
- env :
75
- cache-name : cache-node-modules
76
72
with :
77
73
path : " ./examples/${{ matrix.example }}/node_modules"
78
74
# Use the combo between example, name, and SHA-256 hash of all example lock files as cache key.
79
75
# It's not possible to use the ${{ matrix.example }} key in the hashFiles fn so
80
76
# if any of the lock files (wich should be fairly similar anyway) changes the cache is
81
77
# invalidated/discarded for all.
82
- key : ${{ matrix.example }}-build-${{ env. cache-name }} -${{ hashFiles('./examples/*/package-lock.json') }}
78
+ key : ${{ matrix.example }}-cache-examples-node-modules -${{ hashFiles('./examples/*/package-lock.json') }}
83
79
- name : Install dependencies
84
80
run : npm ci
85
81
- name : Run tests
0 commit comments