fix: update actions/cache and actions/cache/save versions to v5

This commit is contained in:
Leandro Costa 2026-03-07 12:20:47 -03:00
parent 50326ce91f
commit 5da47a8871

View file

@ -43,12 +43,10 @@ runs:
uses: actions/checkout@v4
- name: Build-Node-App Restore Node Modules Cache
uses: actions/cache@v3
uses: actions/cache@v5
with:
path: ~/.npm
key: ${{ runner.os }}-nodejs-${{ hashFiles('package-lock.json') }}
restore-keys: |
${{ runner.os }}-nodejs-
- name: Build-Node-App Build and Test
shell: sh
@ -66,10 +64,10 @@ runs:
echo "Artifact zipped: ${{ inputs.artifact_name }}.tar.gz"
- name: Store Node Modules Cache
uses: actions/cache/save@v4
uses: actions/cache/save@v5
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('package-lock.json') }}
key: ${{ runner.os }}-nodejs-${{ hashFiles('package-lock.json') }}
- uses: actions/upload-artifact@v3
if: ${{ inputs.should_zip_artifact == 'false' }}