Skip to content

Commit 574630f

Browse files
committed
🔧chore: 更新GitHub Actions配置以使用pnpm进行依赖管理 [deploy]
- 在deploy.yml中添加pnpm的安装和版本检查步骤 - 将依赖安装和构建命令从npm替换为pnpm,确保与项目的依赖管理方式一致
1 parent 5ad6e81 commit 574630f

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,17 @@ jobs:
2222
with:
2323
node-version: 20 # 使用你项目所需的 Node.js 版本
2424

25-
- name: 检查 Node 版本
26-
run: npm --version
25+
- name: 安装 pnpm
26+
run: npm install -g pnpm
27+
28+
- name: 检查 pnpm 版本
29+
run: pnpm --version
2730

2831
- name: 安装依赖关系
29-
run: npm install
32+
run: pnpm install
3033

3134
- name: 构建 Vue 项目
32-
run: npm run build # 假设你的构建命令是 npm run build
35+
run: pnpm run build # 使用 pnpm 构建项目
3336

3437
- name: 通过 SSH 部署到服务器
3538
env:

0 commit comments

Comments
 (0)