From 5eb675c6d881097c3afc043281b918de7e628e8b 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 | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 39cec55..ba4910a 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -32,19 +32,22 @@ jobs: uses: actions/checkout@v4 with: fetch-depth: 0 # Not needed if lastUpdated is not enabled - # - uses: pnpm/action-setup@v3 # Uncomment this if you're using pnpm + - name: Install pnpm + uses: pnpm/action-setup@v3 + with: + version: 6.0.0 # Specify the version of pnpm you want to install # - uses: oven-sh/setup-bun@v1 # Uncomment this if you're using Bun - name: Setup Node uses: actions/setup-node@v4 with: node-version: 20 - cache: npm # or pnpm / yarn + cache: pnpm # or pnpm / yarn - 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: