mirror of
https://github.com/actions/cache.git
synced 2026-06-09 22:18:52 +00:00
Implement npm caching in action.yml
Add caching for npm dependencies in GitHub Actions.
This commit is contained in:
parent
27d5ce7f10
commit
233722d848
@ -21,3 +21,11 @@ runs:
|
||||
branding:
|
||||
icon: 'archive'
|
||||
color: 'gray-dark'
|
||||
|
||||
- name: Cache
|
||||
uses: actions/cache@v5.0.5
|
||||
with:
|
||||
path: ~/.npm # Example: paths to cache
|
||||
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} # Example key
|
||||
restore-keys: |
|
||||
${{ runner.os }}-node-
|
||||
|
||||
Loading…
Reference in New Issue
Block a user