Skip to content

Commit

Permalink
chore: use setup-node cache and remove individual cache step (#7310)
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonocasey committed Jul 6, 2021
1 parent a8a5e02 commit fab6e87
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions .github/workflows/ci.yml
Expand Up @@ -32,17 +32,6 @@ jobs:
- name: checkout code
uses: actions/checkout@v2

- name: Cache dependencies
uses: actions/cache@v2
with:
path: |
~/.npm
**/node_modules
key: ${{runner.os}}-npm-${{hashFiles('**/package-lock.json')}}
restore-keys: |
${{runner.os}}-npm-
${{runner.os}}-
- name: read node version from .nvmrc
run: echo ::set-output name=NVMRC::$(cat .nvmrc)
shell: bash
Expand All @@ -58,9 +47,10 @@ jobs:
run: pulseaudio -D

- name: setup node
uses: actions/setup-node@v1
uses: actions/setup-node@v2
with:
node-version: '${{steps.nvm.outputs.NVMRC}}'
cache: npm

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

0 comments on commit fab6e87

Please sign in to comment.