From 25e14fa4db237305e5e2e68403caa4e06793cccc Mon Sep 17 00:00:00 2001 From: Copilot <198982749+Copilot@users.noreply.github.com> Date: Fri, 24 Apr 2026 18:24:45 +0200 Subject: [PATCH] Use Bun in manual release workflow (#327) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Manual `Release` workflow failed before `release-it` ran because it installed dependencies with `npm ci` while repository dependency state is maintained with Bun. This change aligns the release job with the repo’s actual package manager so manual releases can install dependencies from the committed lockfile. - **Problem** - `release.yml` used `npm ci`, which requires `package.json` and `package-lock.json` to be perfectly in sync. - Repo changes had moved dependency resolution forward via Bun, causing the manual release job to fail during install instead of reaching release creation. - **Workflow change** - Keep Node setup for `release-it`. - Add Bun setup in the release job. - Replace `npm ci` with `bun install --frozen-lockfile`. - **Result** - Manual release job now follows same package manager path as rest of repo/workflows. - Dependency installation uses committed Bun lock state, avoiding `package-lock.json` drift as release blocker. ```yaml - uses: actions/setup-node@v4 with: node-version: '20' - uses: oven-sh/setup-bun@v2 - name: Install dependencies run: bun install --frozen-lockfile ``` Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: victor-falcon <238766+victor-falcon@users.noreply.github.com> --- .github/workflows/release.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1f360d0e..e58bfed3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -30,10 +30,11 @@ jobs: - uses: actions/setup-node@v4 with: node-version: '20' - cache: 'npm' + + - uses: oven-sh/setup-bun@v2 - name: Install dependencies - run: npm ci + run: bun install --frozen-lockfile - name: Configure git run: |