From 5ef426f749d89d45a38926638740298000518875 Mon Sep 17 00:00:00 2001 From: Xeu Date: Tue, 9 Jul 2024 21:52:32 +0800 Subject: [PATCH] ci: use bun --- .github/workflows/deploy.yml | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 04f460a..d1937c4 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -24,21 +24,17 @@ jobs: uses: actions/checkout@v4 with: fetch-depth: 0 # Not needed if lastUpdated is not enabled - - uses: pnpm/action-setup@v3 # pnpm is optional but recommended, you can also use npm / yarn - with: - version: 8 - - name: Setup Node - uses: actions/setup-node@v4 - with: - node-version: 20 - cache: pnpm + + - name: Set up Bun + uses: oven-sh/setup-bun@v1 + - name: Setup Pages uses: actions/configure-pages@v5 - name: Install dependencies - run: pnpm install + run: bun install - name: Build with Rspress run: | - pnpm run build + bun run build - name: Upload artifact uses: actions/upload-pages-artifact@v3 with: