From 0179e7e3e1daece947df4c367d5cb7803fc0bf23 Mon Sep 17 00:00:00 2001 From: Dynesshely Date: Sat, 8 Feb 2025 14:38:15 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D=20Chore(CI/CD):=20Switch=20`yarn`?= =?UTF-8?q?=20to=20`pnpm`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build-deploy.yml | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build-deploy.yml b/.github/workflows/build-deploy.yml index dee862ac..d01d4f39 100644 --- a/.github/workflows/build-deploy.yml +++ b/.github/workflows/build-deploy.yml @@ -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/yarn-setup-action@v1.0.1 + - 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 ..