Skip to content

Commit

Permalink
🐛 尝试使用npm直接部署
Browse files Browse the repository at this point in the history
  • Loading branch information
fu050409 committed Dec 13, 2023
1 parent cdf3abe commit 765c3f5
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,25 +17,18 @@ jobs:
# “最近更新时间” 等 git 日志相关信息,需要拉取全部提交记录
fetch-depth: 0

- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
# 选择要使用的 pnpm 版本
version: 8
# 使用 pnpm 安装依赖
run_install: true

- name: Setup Node.js
uses: actions/setup-node@v4
with:
# 选择要使用的 node 版本
node-version: 18
# 缓存 pnpm 依赖
cache: pnpm
- run: cd docs
- run: npm install

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

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

0 comments on commit 765c3f5

Please sign in to comment.