From 96a1b1f3c4b98e3a163293e43de67f1cf804bffd Mon Sep 17 00:00:00 2001 From: "BugMaker.Huang" Date: Mon, 19 Feb 2024 18:22:45 +0800 Subject: [PATCH] ci: update workflow --- .github/workflows/gh-pages.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 24e2fbdf..f79684d1 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -14,11 +14,14 @@ jobs: with: # 如果配置 themeConfig.lastUpdated 为 false,则不需要添加该参数以加快检出速度 fetch-depth: 0 + - uses: pnpm/action-setup@v2 + with: + version: 8.7.0 - name: Install dependencies - run: npm install + run: pnpm install - name: Build with dumi # 文档编译命令,如果是 react 模板需要修改为 npm run docs:build - run: npm run build + run: pnpm docs:build - name: Deploy uses: peaceiris/actions-gh-pages@v3 with: