Skip to content

Commit

Permalink
Cache ~/.npm not node_modules
Browse files Browse the repository at this point in the history
  • Loading branch information
ataylorme committed Dec 19, 2020
1 parent 5b5aa11 commit 7dcc039
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,15 @@ jobs:
uses: actions/setup-node@v1
with:
node-version: "12.x"
- name: Cache node modules
uses: actions/cache@v1
with:
path: ~/.npm
key: ${{ runner.OS }}-build-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.OS }}-build-${{ env.cache-name }}-
${{ runner.OS }}-build-
${{ runner.OS }}-
- name: Install Node Dependencies
run: npm ci
env:
Expand Down

0 comments on commit 7dcc039

Please sign in to comment.