Implement npm caching in action.yml

Add caching for npm dependencies in GitHub Actions.
pull/1759/head
Mamon Anaam 4 weeks ago committed by GitHub
parent 27d5ce7f10
commit 233722d848
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -21,3 +21,11 @@ runs:
branding: branding:
icon: 'archive' icon: 'archive'
color: 'gray-dark' 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…
Cancel
Save