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:
2
.github/workflows/release-cli.yml
vendored
2
.github/workflows/release-cli.yml
vendored
@@ -52,8 +52,10 @@ jobs:
|
|||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
mkdir -p dist/bin
|
mkdir -p dist/bin
|
||||||
|
VERSION=$(node -p "require('./package.json').version")
|
||||||
bun build --compile --minify \
|
bun build --compile --minify \
|
||||||
--target=${{ matrix.bun_target }} \
|
--target=${{ matrix.bun_target }} \
|
||||||
|
--define "__CLAUDEMESH_VERSION__=\"$VERSION\"" \
|
||||||
src/entrypoints/cli.ts \
|
src/entrypoints/cli.ts \
|
||||||
--outfile dist/bin/claudemesh-${{ matrix.target }}${{ matrix.ext }}
|
--outfile dist/bin/claudemesh-${{ matrix.target }}${{ matrix.ext }}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user