Improve caching logic of main workflow (#1274)

This commit is contained in:
Jon Koops 2021-09-30 16:22:20 +02:00 committed by GitHub
parent 79dc067add
commit b5dfcda451
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -19,13 +19,15 @@ jobs:
cache: npm
- name: Cache Node modules
id: cache-node-modules
uses: actions/cache@v2
with:
path: node_modules
key: ${{ runner.os }}-${{ hashFiles('**/package-lock.json') }}
- name: Install dependencies
run: test -d node_modules || npm ci
if: steps.cache-node-modules.outputs.cache-hit != 'true'
run: npm ci
- name: Cache setup
uses: actions/cache@v2