mirror of
https://github.com/actions/github-script.git
synced 2026-02-08 03:57:27 +00:00
ci(workflow): add 'npm' cache for actions/setup-node in .github/workflows
This commit is contained in:
parent
5fa6e37385
commit
ecb772f447
1 changed files with 1 additions and 5 deletions
6
.github/workflows/ci.yml
vendored
6
.github/workflows/ci.yml
vendored
|
|
@ -14,11 +14,7 @@ jobs:
|
||||||
- uses: actions/setup-node@v2
|
- uses: actions/setup-node@v2
|
||||||
with:
|
with:
|
||||||
node-version: 12
|
node-version: 12
|
||||||
- uses: actions/cache@v2
|
cache: npm
|
||||||
with:
|
|
||||||
path: ~/.npm
|
|
||||||
key: ${{runner.os}}-npm-${{hashFiles('**/package-lock.json')}}
|
|
||||||
restore-keys: ${{runner.os}}-npm-
|
|
||||||
- run: npm ci
|
- run: npm ci
|
||||||
- run: npm run style:check
|
- run: npm run style:check
|
||||||
- run: npm test
|
- run: npm test
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue