Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
moyechen committed Dec 7, 2023
1 parent 3d9b5d7 commit 5d70489
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions .github/workflows/vuepress-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,21 +21,19 @@ jobs:
uses: actions/setup-node@v4
with:
# 选择要使用的 node 版本
node-version: 18
node-version: 18.16.x
# 缓存 pnpm 依赖

- name: Run install
uses: borales/actions-yarn@v4
with:
cmd: install # will run `yarn install` command

- name: Setup pnpm
uses: pnpm/action-setup@v2
- name: Build production bundle
uses: borales/actions-yarn@v4
with:
# 选择要使用的 pnpm 版本
version: 8
# 使用 pnpm 安装依赖
run_install: true
cmd: docs:build # will run `yarn build:prod` command

# 运行构建脚本
- name: Build VuePress site
run: pnpm docs:build

# 查看 workflow 的文档来获取更多信息
# @see https://github.com/crazy-max/ghaction-github-pages
Expand Down

0 comments on commit 5d70489

Please sign in to comment.