mirror of
https://github.com/setube/ogame-vue-ts.git
synced 2026-05-12 07:55:11 +08:00
Update .github/workflows/github-pages.yml
Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com>
This commit is contained in:
14
.github/workflows/github-pages.yml
vendored
14
.github/workflows/github-pages.yml
vendored
@@ -23,13 +23,19 @@ jobs:
|
|||||||
uses: actions/setup-node@v6
|
uses: actions/setup-node@v6
|
||||||
with:
|
with:
|
||||||
node-version: 20 # 建议使用 LTS 版本
|
node-version: 20 # 建议使用 LTS 版本
|
||||||
cache: 'npm'
|
|
||||||
|
|
||||||
- name: 安装 pnpm
|
- name: 设置 pnpm(启用 pnpm 缓存)
|
||||||
run: npm install -g pnpm && pnpm install
|
uses: pnpm/action-setup@v4
|
||||||
|
with:
|
||||||
|
version: 9
|
||||||
|
run_install: false
|
||||||
|
cache: true
|
||||||
|
|
||||||
|
- name: 安装依赖
|
||||||
|
run: pnpm install
|
||||||
|
|
||||||
- name: 构建前端项目
|
- name: 构建前端项目
|
||||||
run: pnpm install && pnpm run build
|
run: pnpm run build
|
||||||
|
|
||||||
# 关键步骤:告诉 GitHub Actions 跳过 Jekyll 检查
|
# 关键步骤:告诉 GitHub Actions 跳过 Jekyll 检查
|
||||||
- name: 配置 Github Pages
|
- name: 配置 Github Pages
|
||||||
|
|||||||
Reference in New Issue
Block a user