Merge pull request #174 from oscard0m/add-cache-to-node-workflows

ci(workflow): add cache to workflows using actions/setup-node
This commit is contained in:
Josh Gross
2021-08-03 18:12:58 -04:00
committed by GitHub

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