Skip to content

Commit fab6e87

Browse files
authoredJul 6, 2021
chore: use setup-node cache and remove individual cache step (#7310)
1 parent a8a5e02 commit fab6e87

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed
 

‎.github/workflows/ci.yml

+2-12
Original file line numberDiff line numberDiff line change
@@ -32,17 +32,6 @@ jobs:
3232
- name: checkout code
3333
uses: actions/checkout@v2
3434

35-
- name: Cache dependencies
36-
uses: actions/cache@v2
37-
with:
38-
path: |
39-
~/.npm
40-
**/node_modules
41-
key: ${{runner.os}}-npm-${{hashFiles('**/package-lock.json')}}
42-
restore-keys: |
43-
${{runner.os}}-npm-
44-
${{runner.os}}-
45-
4635
- name: read node version from .nvmrc
4736
run: echo ::set-output name=NVMRC::$(cat .nvmrc)
4837
shell: bash
@@ -58,9 +47,10 @@ jobs:
5847
run: pulseaudio -D
5948

6049
- name: setup node
61-
uses: actions/setup-node@v1
50+
uses: actions/setup-node@v2
6251
with:
6352
node-version: '${{steps.nvm.outputs.NVMRC}}'
53+
cache: npm
6454

6555
# turn off the default setup-node problem watchers...
6656
- run: echo "::remove-matcher owner=eslint-compact::"

0 commit comments

Comments
 (0)
Please sign in to comment.