Skip to content

Commit 5576b54

Browse files
author
shahinyanm
committed
ci: install with npm, not bun — fix the v0.7.0 release build
The release build failed at "Install deps": bun --frozen-lockfile saw a bun.lock that still pinned aimux 0.17.0 while package.json now asks ^0.19.0. The project is npm-canonical (README installs via npm); bun is only needed to compile the self-contained binary. So: - install with `npm ci` (root + web), add setup-node 22; keep `bun build --compile` as the only bun step. - package-lock.json referenced aimux as `file:../aimux` (a local dev link that can't resolve in CI) — repoint it to the published npm @digital-threads/aimux 0.19.0. - drop the now-unused bun.lock files. Claude-Session: https://claude.ai/code/session_012GujqUM9Rzsu9dmhee8fQy
1 parent 5653e4f commit 5576b54

4 files changed

Lines changed: 45 additions & 887 deletions

File tree

.github/workflows/release.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,17 +24,22 @@ jobs:
2424
runs-on: ${{ matrix.os }}
2525
steps:
2626
- uses: actions/checkout@v4
27-
- uses: oven-sh/setup-bun@v2
27+
- uses: actions/setup-node@v4
28+
with:
29+
node-version: 22
30+
- uses: oven-sh/setup-bun@v2 # only for the --compile step below
2831
- name: Install deps
29-
run: bun install --frozen-lockfile
32+
run: npm ci
3033
- name: Install web deps
31-
# web/ is a separate package (own package.json + bun.lock) — its deps
34+
# web/ is a separate package (own package.json + lockfile) — its deps
3235
# (react/vite + @testing-library, which the build's tsc type-checks)
3336
# aren't pulled by the root install, so install them too.
34-
run: cd web && bun install --frozen-lockfile
37+
run: cd web && npm ci
3538
- name: Build (host dist + web/dist)
36-
run: bun run build
39+
run: npm run build
3740
- name: Compile self-contained binary
41+
# bun is the ONLY tool that compiles a self-contained executable; the
42+
# install/build above are npm — bun is just the bundler here.
3843
run: bun build dist/cli.js --compile --outfile "release/loom${{ matrix.ext }}"
3944
- name: Stage web/dist next to the binary
4045
shell: bash

0 commit comments

Comments
 (0)