Skip to content

Commit b76a35c

Browse files
committed
feat: 更新CI Node.js 版本至 23.x
1 parent f5f0dde commit b76a35c

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

.github/workflows/deploy.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,21 +12,11 @@ jobs:
1212

1313
strategy:
1414
matrix:
15-
node-version: [22.x]
15+
node-version: [23.x]
1616

1717
steps:
1818
- uses: actions/checkout@v4
19-
20-
- name: Cache dependencies
21-
uses: actions/cache@v4
22-
with:
23-
path: |
24-
~/.pnpm-store
25-
${{ github.workspace }}/.next/cache
26-
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}-${{ hashFiles('**/*.js', '**/*.jsx', '**/*.ts', '**/*.tsx') }}
27-
restore-keys: |
28-
${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}-
29-
19+
3020
- name: Use Node.js ${{ matrix.node-version }}
3121
uses: actions/setup-node@v4
3222
with:
@@ -37,6 +27,16 @@ jobs:
3727
with:
3828
version: latest
3929

30+
- name: Cache Next.js
31+
uses: actions/cache@v4
32+
with:
33+
path: |
34+
~/.pnpm-store
35+
${{ github.workspace }}/.next/cache
36+
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/pnpm-lock.yaml') }}-${{ hashFiles('**/*.js', '**/*.jsx', '**/*.ts', '**/*.tsx') }}
37+
restore-keys: |
38+
${{ runner.os }}-nextjs-${{ hashFiles('**/pnpm-lock.yaml') }}-
39+
4040
- name: Build project
4141
run: |
4242
pnpm install

0 commit comments

Comments
 (0)