Skip to content

Commit

Permalink
Improve cache hit rate of setup-node by ignoring version
Browse files Browse the repository at this point in the history
  • Loading branch information
roryabraham committed Sep 10, 2024
1 parent 1725041 commit ba1e6b2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/actions/composite/setupNode/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,16 @@ outputs:
runs:
using: composite
steps:
- name: Remove E/App version from package-lock.json
shell: bash
run: jq 'del(.version)' package-lock.json > normalized-package-lock.json

- uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: npm
cache-dependency-path: |
package-lock.json
normalized-package-lock.json
desktop/package-lock.json
- id: cache-node-modules
Expand Down

0 comments on commit ba1e6b2

Please sign in to comment.