chore(ci): 优化 GitHub Pages 部署工作流

- 合并 pnpm 安装与构建步骤
- 移除冗余的 node-version 配置
- 简化工作流中的缓存逻辑
- 更新 pnpm 版本管理方式
- 减少不必要的 workflow 执行时间
This commit is contained in:
coolxitech
2025-12-15 22:07:23 +08:00
parent 2bac87cd39
commit 4340450d78

View File

@@ -24,15 +24,10 @@ jobs:
with:
node-version: 20 # 建议使用 LTS 版本
- name: 设置 pnpm启用 pnpm 缓存)
- name: 安装 pnpm 并构建前端
uses: pnpm/action-setup@v4
with:
version: 10
run_install: false
cache: true
- name: 安装依赖
run: pnpm install
run_install: true
- name: 构建前端项目
run: pnpm run build