Skip to content

Commit e580f37

Browse files
authored
fix: CLI
1 parent 391cc55 commit e580f37

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,12 @@ jobs:
2828
- uses: actions/setup-node@v4
2929
with:
3030
# 设置 Node.js 版本
31-
node-version: 20
31+
node-version: 24
3232
# 设置 npm 源
3333
registry-url: "https://registry.npmjs.org"
34+
- name: 更新npm到最新版本
35+
if: ${{ steps.release.outputs.release_created }}
36+
run: npm install -g npm@latest
3437
# 安装依赖 不安装对等依赖
3538
- run: npm install --config.auto-install-peers=false --ignore-scripts --omit=peer
3639
env:

0 commit comments

Comments
 (0)