Skip to content

Commit

Permalink
📝 Chore(CI/CD): Switch yarn to pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
Dynesshely committed Feb 8, 2025
1 parent 192ecdd commit 0179e7e
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions .github/workflows/build-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 ..
Expand Down

0 comments on commit 0179e7e

Please sign in to comment.