-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
192ecdd
commit 0179e7e
Showing
1 changed file
with
13 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,25 +13,30 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
# 如果你文档需要 Git 子模块,取消注释下一行 | ||
# submodules: true | ||
|
||
- name: Setup Yarn | ||
# You may pin to the exact commit or the version. | ||
# uses: DerYeger/yarn-setup-action@f55be5383ea94f5eb25b20aee609af4603a68dde | ||
uses: DerYeger/[email protected] | ||
- uses: pnpm/action-setup@v4 | ||
name: Install pnpm | ||
with: | ||
node-version: 18 | ||
version: 10 | ||
run_install: false | ||
|
||
- name: Install Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 22 | ||
cache: "pnpm" | ||
|
||
- name: Build Docs | ||
env: | ||
NODE_OPTIONS: --max_old_space_size=8192 | ||
run: |- | ||
yarn install | ||
yarn docs:build | ||
pnpm install | ||
pnpm docs:build | ||
echo "do not need it" > docs/.vuepress/dist/.nojekyll | ||
cd .. | ||
|