Base cache id on examples' lock files only

This commit is contained in:
Franck Royer 2022-06-17 16:43:57 +10:00
parent 856ca8c148
commit 5ba93fb199
No known key found for this signature in database
GPG Key ID: A82ED75A8DFC50A4
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@ jobs:
uses: actions/cache@v2
with:
path: ~/.npm
key: examples-node-v1-${{ hashFiles('**/package-lock.json') }}
key: examples-node-v1-${{ hashFiles('examples/*/package-lock.json') }}
- name: (npm) ${{ matrix.example }} install using npm ci
if: steps.use-yarn.outputs.lockfile != 'yarn.lock'