diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index cffc32b..7c5c7e4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,22 +14,24 @@ jobs: - name: Checkout uses: actions/checkout@v4 - - name: Install pnpm - uses: pnpm/action-setup@v4 + - name: Restore Bun cache + uses: actions/cache@v4 with: - version: latest + path: ~/.bun/install/cache + key: ${{ runner.os }}-bun-${{ hashFiles('**/bun.lock') }} + restore-keys: | + ${{ runner.os }}-bun- + + - name: Setup Bun + uses: oven-sh/setup-bun@v2 + with: + bun-version: latest - - name: Install Node.js - uses: actions/setup-node@v4 - with: - node-version: 22 - cache: pnpm - - name: Install dependencies - run: pnpm install --frozen-lockfile + run: bun install --frozen-lockfile --production - name: Release - run: pnpx semantic-release + run: bunx semantic-release env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} RELEASE_BRANCH: ${{ github.ref_name }}