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 765c3f5 commit 183d520
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,11 @@ jobs:
# 选择要使用的 node 版本
node-version: 18
# 缓存 pnpm 依赖
- run: cd docs
- run: npm install
- run: cd docs && npm install

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

# 查看 workflow 的文档来获取更多信息
# @see https://github.com/crazy-max/ghaction-github-pages
Expand All @@ -38,7 +37,7 @@ jobs:
# 部署到 gh-pages 分支
target_branch: gh-pages
# 部署目录为 VuePress 的默认输出目录
build_dir: docs/.vuepress/dist
build_dir: docs/src/.vuepress/dist
env:
# @see https://docs.github.com/cn/actions/reference/authentication-in-a-workflow\#about-the-github_token-secret
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit 183d520

Please sign in to comment.