diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml
index 9d5b833..483dd2e 100644
--- a/.github/workflows/main.yaml
+++ b/.github/workflows/main.yaml
@@ -23,18 +23,13 @@ jobs:
env:
cache-name: cache-node-modules
with:
+ # npm cache files are stored in `~/.npm` on Linux/macOS
path: ~/.npm
- key: \{\{ runner\.os \}\}\-build\-{{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
+ key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
- \{\{ runner\.os \}\}\-build\-{{ env.cache-name }}-
+ ${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
- ${{ runner.os }}-
- cache-invalidation-period: 1d
-
- - if: ${{ steps.cache-npm.outputs.cache-hit != 'true' }}
- name: List the state of node modules
- continue-on-error: true
- run: npm list
+ ${{ runner.os }}-
- name: Install dependencies
run: npm ci