From b19d334be760cb0b8ecf97f4128e527027ab3a70 Mon Sep 17 00:00:00 2001 From: WTW0313 Date: Sun, 23 Feb 2025 22:38:03 +0800 Subject: [PATCH] feat: update GitHub Actions workflow to use pnpm for dependency management and build process --- .github/workflows/deploy.yaml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index a9fd2d6..17451f1 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -32,21 +32,20 @@ jobs: uses: actions/checkout@v4 with: fetch-depth: 0 # Not needed if lastUpdated is not enabled - - uses: pnpm/action-setup@v3 # Uncomment this block if you're using pnpm + - uses: pnpm/action-setup@v3 with: version: 9 # Not needed if you've set "packageManager" in package.json - # - 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 - name: Build with VitePress - run: npm run docs:build # or pnpm docs:build / yarn docs:build / bun run docs:build + run: pnpm docs:build - name: Upload artifact uses: actions/upload-pages-artifact@v3 with: