Skip to content

Commit 3b438fe

Browse files
Update test-cache-restore.yml
1 parent d0853fa commit 3b438fe

1 file changed

Lines changed: 4 additions & 7 deletions

File tree

.github/workflows/test-cache-restore.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,11 @@ jobs:
3535
echo "CACHE_PATH=$(yarn cache dir)" >> $GITHUB_ENV
3636
fi
3737
38-
# Restore cache manually
39-
- name: Restore Package Manager Cache
40-
uses: actions/cache@v5
38+
- name: Restore Node cache
39+
uses: actions/cache/restore@v5
4140
with:
42-
path: ${{ env.CACHE_PATH }}
43-
key: node-cache-${{ runner.os }}-${{ matrix.package-manager }}-${{ hashFiles('**/package-lock.json', '**/npm-shrinkwrap.json', '**/pnpm-lock.yaml', '**/yarn.lock') }}
44-
restore-keys: |
45-
node-cache-${{ runner.os }}-${{ matrix.package-manager }}-
41+
path: ${{ env.NODE_CACHE }}
42+
key: node-cache-${{ runner.os }}-${{ env.ARCH }}-${{ matrix.package-manager }}-${{ hashFiles('**/package-lock.json', '**/npm-shrinkwrap.json', '**/pnpm-lock.yaml', '**/yarn.lock') }}
4643

4744
# Install dependencies
4845
- name: Install Dependencies

0 commit comments

Comments
 (0)