Skip to content

Commit

Permalink
fix(npm): use cache from setup-node
Browse files Browse the repository at this point in the history
  • Loading branch information
EdieLemoine committed Aug 11, 2022
1 parent 8b08513 commit a9e9349
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions npm-install/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,9 @@ runs:
- uses: actions/setup-node@v3
with:
node-version: ${{ inputs.node-version }}

- name: 'Prepare node_modules cache'
uses: actions/cache@v3
id: cache
with:
path: node_modules
key: ${{ runner.os }}-npm-node_modules-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-npm-node_modules-
cache: 'npm'
cache-dependency-path: '**/package-lock.json'

- name: 'Install npm dependencies'
if: steps.cache.outputs.cache-hit != 'true'
run: npm ci
shell: bash

0 comments on commit a9e9349

Please sign in to comment.