Skip to content

Commit fd726ff

Browse files
committed
Use the same npm cache key in every job.
1 parent 6163b0d commit fd726ff

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎.github/workflows/static-checks.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
with:
3838
# npm cache files are stored in `~/.npm` on Linux/macOS
3939
path: ~/.npm
40-
key: ${{ runner.os }}-node-14-npm-cache-${{ hashFiles('**/package-lock.json') }}
40+
key: ${{ runner.os }}-node-npm-cache-${{ hashFiles('**/package-lock.json') }}
4141

4242
- name: Npm install and build
4343
# A "full" install is executed, since `npm ci` does not always exit

‎.github/workflows/unit-test.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ jobs:
7373
with:
7474
# npm cache files are stored in `~/.npm` on Linux/macOS
7575
path: ~/.npm
76-
key: ${{ runner.os }}-node-14-npm-cache-${{ hashFiles('**/package-lock.json') }}
76+
key: ${{ runner.os }}-node-npm-cache-${{ hashFiles('**/package-lock.json') }}
7777

7878
- name: Npm install and build
7979
run: |

0 commit comments

Comments
 (0)