mirror of
https://code.forgejo.org/actions/cache.git
synced 2026-05-16 01:05:34 +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
1 changed files with 8 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue