ci(workflow): add 'npm' cache for actions/setup-node in .github/workflows (#8748)

This commit is contained in:
Oscar Dominguez
2021-10-12 22:10:17 +02:00
committed by GitHub
parent aff49835ee
commit 432fc0ff93
4 changed files with 18 additions and 38 deletions

View File

@@ -22,19 +22,8 @@ jobs:
- uses: actions/setup-node@v2
with:
node-version: '16'
- name: Cache node modules
uses: actions/cache@v2
env:
cache-name: cache-node-modules
with:
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
node-version: "16"
cache: npm
- name: Install Dependencies
run: npm ci