Skip to content

Commit

Permalink
chore: cache node modules fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jbeveland27 committed Feb 20, 2023
1 parent 56e223b commit 104ae0a
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,16 @@ jobs:
with:
node-version: 16

- name: Get NPM Cache Directory
id: npm-cache
run: |
echo "::set-output name=dir::$(npm config get cache)"
- name: Cache NPM
- name: Cache node_modules
id: cache-node-modules
uses: actions/cache@v2
env:
cache-name: node-modules
with:
path: ${{ steps.npm-cache.outputs.dir }}
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
path: ~/.npm
key: ${{ runner.os }}-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
${{ runner.os }}-${{ env.cache-name }}-
- name: Install NPM Dependencies
run: npm ci
Expand Down

0 comments on commit 104ae0a

Please sign in to comment.