Skip to content

Commit a2cfbb5

Browse files
committed
🐞 fix: 修复构建 pnpm 失败
1 parent c4bd94d commit a2cfbb5

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

.github/workflows/release.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ on:
88

99
env:
1010
NODE_VERSION: 22.x
11+
PNPM_VERSION: 10
1112

1213
jobs:
1314
# ===================================================================
@@ -25,15 +26,16 @@ jobs:
2526
# 检出 Git 仓库
2627
- name: Check out git repository
2728
uses: actions/checkout@v5
29+
- name: Setup pnpm
30+
uses: pnpm/action-setup@v4
31+
with:
32+
version: ${{ env.PNPM_VERSION }}
2833
# 安装 Node.js
2934
- name: Setup Node.js
3035
uses: actions/setup-node@v6
3136
with:
3237
node-version: ${{ env.NODE_VERSION }}
3338
cache: "pnpm"
34-
# 安装 pnpm
35-
- name: Install pnpm
36-
run: npm install -g pnpm
3739
# 安装项目依赖
3840
- name: Install dependencies
3941
run: pnpm install --frozen-lockfile

0 commit comments

Comments
 (0)