From c7efce343292846977d6adb83fb2f533e2d7142b Mon Sep 17 00:00:00 2001 From: kaitranntt Date: Fri, 28 Nov 2025 21:00:53 -0500 Subject: [PATCH] fix(ci): add Bun setup and build steps to npm publish workflow The npm publish was failing because: 1. Bun runtime was not installed (prepublishOnly uses bun commands) 2. dist/ was not built before publish Added: - oven-sh/setup-bun@v2 action - bun install step - bun run build step --- .github/workflows/publish-npm.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/publish-npm.yml b/.github/workflows/publish-npm.yml index 27e38eb1..20578673 100644 --- a/.github/workflows/publish-npm.yml +++ b/.github/workflows/publish-npm.yml @@ -22,6 +22,17 @@ jobs: node-version: '20' registry-url: 'https://registry.npmjs.org' + - name: Setup Bun + uses: oven-sh/setup-bun@v2 + with: + bun-version: latest + + - name: Install dependencies + run: bun install + + - name: Build package + run: bun run build + - name: Sync version from VERSION file run: node scripts/sync-version.js