From 7992c12802b97bae90a127f45dc4bc29fe58012a Mon Sep 17 00:00:00 2001 From: wfnuser Date: Wed, 26 Jun 2024 12:48:39 +0800 Subject: [PATCH] update deploy.yml --- .github/workflows/deploy.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 39cec55..72ec799 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -38,13 +38,15 @@ jobs: uses: actions/setup-node@v4 with: node-version: 20 - cache: npm # or pnpm / yarn + cache: pnpm # or pnpm / yarn + - name: Install pnpm + run: npm install -g pnpm - name: Setup Pages uses: actions/configure-pages@v4 - name: Install dependencies - run: npm ci # or pnpm install / yarn install / bun install + run: pnpm install # or pnpm install / yarn install / bun install - name: Build with VitePress - run: npm run docs:build # or pnpm docs:build / yarn docs:build / bun run docs:build + run: pnpm run docs:build # or pnpm docs:build / yarn docs:build / bun run docs:build - name: Upload artifact uses: actions/upload-pages-artifact@v3 with: