From c9ede3d46946382c6ff09ddd16dd8fedb676c7c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alejandro=20Guti=C3=A9rrez?= <35082514+alezmad@users.noreply.github.com> Date: Wed, 15 Apr 2026 03:09:41 +0100 Subject: [PATCH] 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) --- .github/workflows/release-cli.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/release-cli.yml b/.github/workflows/release-cli.yml index d1e897f..187a9d8 100644 --- a/.github/workflows/release-cli.yml +++ b/.github/workflows/release-cli.yml @@ -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 }}