Skip to content

Commit 752ab86

Browse files
committed
build(github-action): 更新前端环境验证流程以支持 pnpm
- 添加 pnpm 安装步骤,使用 pnpm/action-setup@v4 - 指定 pnpm 版本为 9 - 在环境验证步骤中添加 pnpm 版本检查 - 保持与现有 node 和 npm 验证的一致性
1 parent d3e7441 commit 752ab86

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

.github/workflows/github-release.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,18 @@ jobs:
3636
cache-dependency-path: |
3737
fe/pnpm-lock.yaml
3838
39+
- name: 🧩 安装 pnpm
40+
uses: pnpm/action-setup@v4
41+
with:
42+
version: 9
43+
run_install: false
44+
3945
- name: 🔍 验证前端环境
4046
run: |
4147
echo "📊 前端环境信息:"
4248
echo "Node 版本: $(node --version)"
4349
echo "NPM 版本: $(npm --version)"
50+
echo "PNPM 版本: $(pnpm --version || echo 'pnpm 未安装')"
4451
echo "工作目录: $(pwd)"
4552
4653
if [ -d "fe" ]; then

0 commit comments

Comments
 (0)