From 91b79242e2015bc2ddc1ad5dc225b2fbd6d442d7 Mon Sep 17 00:00:00 2001 From: Cameron Otsuka Date: Thu, 5 Jun 2025 10:35:16 -0700 Subject: [PATCH] use bun in gh action --- .github/workflows/deploy-to-ghpages.yml | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/.github/workflows/deploy-to-ghpages.yml b/.github/workflows/deploy-to-ghpages.yml index 065d9c9..4831fdb 100644 --- a/.github/workflows/deploy-to-ghpages.yml +++ b/.github/workflows/deploy-to-ghpages.yml @@ -16,20 +16,22 @@ jobs: steps: - uses: actions/checkout@v4 - - name: Setup Node - uses: actions/setup-node@v4 + - name: Setup Bun + uses: oven-sh/setup-bun@v2 with: - node-version-file: 'package.json' - check-latest: true + bun-version: latest + # bun-version-file: 'package.json' - - name: Persist npm cache + - name: Persist Bun cache uses: actions/cache@v4 with: - path: ~/.npm - key: ${{ runner.os }}-node-${{ hashFiles('**/package.json') }} + path: ~/.bun/install/cache + key: ${{ runner.os }}-${{ matrix.bun }}-bun-${{ hashFiles('**/bun.lock') }} + restore-keys: | + ${{ runner.os }}-${{ matrix.bun }}-bun- - - run: npm install - - run: npm run build-ghpages + - run: bun install + - run: bun run build-ghpages - name: Deploy uses: peaceiris/actions-gh-pages@v4 -- 2.51.0