@@ -25,13 +25,11 @@ jobs:
2525 - name : Cache node modules
2626 id : cache-node-modules
2727 uses : actions/cache@v3
28- env :
29- cache-name : cache-node-modules
3028 with :
3129 path : " ./node_modules"
3230 # Use the combo between node version, name, and SHA-256 hash of the lock file as cache key so that
3331 # 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') }}
3533 - name : Install dependencies
3634 # We can skip the install if there was a cache hit
3735 if : steps.cache-node-modules.outputs.cache-hit != 'true'
@@ -71,15 +69,13 @@ jobs:
7169 - name : Cache node modules
7270 id : cache-node-modules
7371 uses : actions/cache@v3
74- env :
75- cache-name : cache-node-modules
7672 with :
7773 path : " ./examples/${{ matrix.example }}/node_modules"
7874 # Use the combo between example, name, and SHA-256 hash of all example lock files as cache key.
7975 # It's not possible to use the ${{ matrix.example }} key in the hashFiles fn so
8076 # if any of the lock files (wich should be fairly similar anyway) changes the cache is
8177 # 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') }}
8379 - name : Install dependencies
8480 run : npm ci
8581 - name : Run tests
0 commit comments