Skip to content

Commit 7bbd652

Browse files
committed
fix: 更新 pnpm 缓存步骤以使用 actions/cache@v4 并优化缓存键
1 parent 4a3b600 commit 7bbd652

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/deploy.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,14 @@ jobs:
2828
version: latest
2929

3030
- name: Setup pnpm cache
31-
uses: actions/cache@v3
31+
uses: actions/cache@v4
3232
with:
3333
path: |
3434
~/.pnpm-store
35-
${{ github.workspace }}/.next/cache
36-
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/pnpm-lock.yaml') }}-${{ hashFiles('**/*.js', '**/*.jsx', '**/*.ts', '**/*.tsx') }}
35+
.next/cache
36+
key: ${{ runner.os }}-pnpm-nextjs-${{ hashFiles('**/pnpm-lock.yaml') }}
3737
restore-keys: |
38-
${{ runner.os }}-nextjs-${{ hashFiles('**/pnpm-lock.yaml') }}-
38+
${{ runner.os }}-pnpm-nextjs-
3939
4040
- name: Install dependencies
4141
run: pnpm install

0 commit comments

Comments
 (0)