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:
parent
2a88642c08
commit
74df4c3980
4 changed files with 31 additions and 0 deletions
10
.github/workflows/nodejs.yml
vendored
10
.github/workflows/nodejs.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue