fix(ci): pass --define for version to bun build --compile

The compile step bypasses build.ts, so the define had to be added
to the workflow's bun build command directly.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Alejandro Gutiérrez
2026-04-15 03:09:41 +01:00
parent b998e35d17
commit c9ede3d469

View File

@@ -52,8 +52,10 @@ jobs:
shell: bash
run: |
mkdir -p dist/bin
VERSION=$(node -p "require('./package.json').version")
bun build --compile --minify \
--target=${{ matrix.bun_target }} \
--define "__CLAUDEMESH_VERSION__=\"$VERSION\"" \
src/entrypoints/cli.ts \
--outfile dist/bin/claudemesh-${{ matrix.target }}${{ matrix.ext }}