mirror of
https://github.com/setube/ogame-vue-ts.git
synced 2026-05-12 07:55:11 +08:00
chore(ci): 优化 GitHub Pages 部署工作流
- 合并 pnpm 安装与构建步骤 - 移除冗余的 node-version 配置 - 简化工作流中的缓存逻辑 - 更新 pnpm 版本管理方式 - 减少不必要的 workflow 执行时间
This commit is contained in:
9
.github/workflows/github-pages.yml
vendored
9
.github/workflows/github-pages.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user