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:
酷曦科技
2025-12-15 22:02:29 +08:00
committed by GitHub
parent a592713623
commit 84b090d51d

View File

@@ -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