From: Cameron Otsuka Date: Thu, 5 Jun 2025 17:35:16 +0000 (-0700) Subject: use bun in gh action X-Git-Tag: v1.0.0 X-Git-Url: https://git.otsuka.systems/?a=commitdiff_plain;h=8b4867e02f9d59fb1406a5732c67ca4f2a42db23;p=cotsuka.github.io use bun in gh action --- 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