Skip to content

Commit

Permalink
hashFiles
Browse files Browse the repository at this point in the history
  • Loading branch information
jitu5 committed Apr 11, 2024
1 parent ad6722c commit 385169d
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/actions/install_node_dependencies/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,14 @@ runs:
run: echo "dir=$(npm config get cache)" >> $GITHUB_OUTPUT
shell: bash

- uses: actions/cache@v4
- name: Cache Node.js packages
uses: actions/cache@v2
with:
# path: node_modules
path: "${{ steps.npm-cache-dir.outputs.dir }}"
key: "${{ runner.os }}-node-${{ hashFiles(inputs.package-path + '/package-lock.json') }}"
restore-keys: "${{ runner.os }}-node-"
key: ${{ runner.os }}-node-${{ hashFiles(format('{0}/package-lock.json', inputs.package-path)) }}
restore-keys: |
${{ runner.os }}-node-
- run: npm ci
shell: bash

0 comments on commit 385169d

Please sign in to comment.