re-add node_modules cache

This in combination with `cache: npm` for the `setup-node` would be
awesome if that works.
This commit is contained in:
Robin Malfait 2022-10-15 23:37:09 +02:00
parent 2a88642c08
commit 74df4c3980
No known key found for this signature in database
GPG key ID: 92F53D68B9041AFE
4 changed files with 31 additions and 0 deletions

View file

@ -28,7 +28,17 @@ jobs:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Use cached node_modules
id: cache
uses: actions/cache@v3
with:
path: node_modules
key: nodeModules-${{ hashFiles('**/package-lock.json') }}-${{ matrix.node-version }}
restore-keys: |
nodeModules-
- name: Install dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: npm install
env:
CI: true