Skip to content

Commit ecb772f

Browse files
committed
ci(workflow): add 'npm' cache for actions/setup-node in .github/workflows
1 parent 5fa6e37 commit ecb772f

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,7 @@ jobs:
1414
- uses: actions/setup-node@v2
1515
with:
1616
node-version: 12
17-
- uses: actions/cache@v2
18-
with:
19-
path: ~/.npm
20-
key: ${{runner.os}}-npm-${{hashFiles('**/package-lock.json')}}
21-
restore-keys: ${{runner.os}}-npm-
17+
cache: npm
2218
- run: npm ci
2319
- run: npm run style:check
2420
- run: npm test

0 commit comments

Comments
 (0)