impl. npm cache

This commit is contained in:
Dennis Eichhorn 2020-06-05 17:27:43 +02:00 committed by GitHub
parent ad48bc0825
commit 4f19f91e33
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -12,6 +12,15 @@ jobs:
uses: actions/setup-node@v1
with:
node-version: '12.x'
- name: Cache dependencies
id: npm-cache
run: |
echo "::set-output name=dir::$(npm config get cache)"
- uses: actions/cache@v2
with:
path: ${{ steps.npm-cache.outputs.dir }}
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: ${{ runner.os }}-node
- name: Install dependencies
run: npm ci
- name: Compile CSS