Skip to content

Commit

Permalink
chore: use the new npm cache option when setting up node (#1157)
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonocasey authored Jul 6, 2021
1 parent 253849a commit b7942ff
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,17 +47,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 @@ -76,9 +65,10 @@ jobs:
if: ${{startsWith(matrix.os, 'ubuntu')}}

- 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 b7942ff

Please sign in to comment.