Skip to content

Commit

Permalink
fix github action npm cache
Browse files Browse the repository at this point in the history
  • Loading branch information
devo1929 committed Jul 1, 2023
1 parent 3ae78de commit ccda37c
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,16 @@ jobs:
with:
fetch-depth: 0 # required for gitversion

- uses: actions/setup-node@v3
- name: Restore NPM Lib Cache
id: cache-npm
uses: actions/cache@v3
with:
node-version: 18
cache: 'npm'
cache-dependency-path: tools/package-lock.json
# npm cache files are stored in `~/.npm` on Linux/macOS and c:\npm on Windows
path: c:\npm
key: npm-${{ hashFiles('tools/package-lock.json') }}

- name: Install Tools NPM Libs
- if: ${{ steps.cache-npm.outputs.cache-hit != 'true' }}
name: Install Tools NPM Libs
working-directory: tools
run: npm ci

Expand Down

0 comments on commit ccda37c

Please sign in to comment.