3
0
Fork 0
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:
Mamon Anaam 2026-05-15 17:57:34 +03:00 committed by GitHub
parent 27d5ce7f10
commit 233722d848
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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-