Skip to content

Commit 25f2b09

Browse files
committed
ci: 修复 Node20 已被弃用的警告
- 仅修复 check_fix_push 的
1 parent 8c837fc commit 25f2b09

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

.github/workflows/check_fix_push.yml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,22 +7,28 @@ on:
77

88
permissions: write-all
99

10+
env:
11+
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
12+
1013
jobs:
1114
check:
1215
runs-on: ubuntu-latest
1316
if: |
1417
${{ github.event.head_commit.message!='chore(actions): check_format_lint' }}
1518
steps:
1619
- name: 检出仓库代码
17-
uses: actions/checkout@v4
20+
uses: actions/checkout@v5
1821

1922
- name: 配置 Node.js 运行环境
20-
uses: actions/setup-node@v4
23+
uses: actions/setup-node@v5
2124
with:
22-
node-version: 22
25+
node-version: 25
26+
package-manager-cache: false
2327

24-
- name: 配置 pnpm 包管理器
25-
uses: pnpm/action-setup@v4
28+
- name: 启用 corepack 并安装 pnpm
29+
run: |
30+
corepack enable
31+
corepack prepare pnpm@latest --activate
2632
2733
- name: 安装项目依赖
2834
run: pnpm install

0 commit comments

Comments
 (0)