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

This commit is contained in:
Oscar Dominguez
2021-07-18 22:31:39 +02:00
parent 5fa6e37385
commit ecb772f447

View File

@@ -14,11 +14,7 @@ jobs:
- uses: actions/setup-node@v2
with:
node-version: 12
- uses: actions/cache@v2
with:
path: ~/.npm
key: ${{runner.os}}-npm-${{hashFiles('**/package-lock.json')}}
restore-keys: ${{runner.os}}-npm-
cache: npm
- run: npm ci
- run: npm run style:check
- run: npm test