Skip to content

Commit 48ef4f7

Browse files
backnotpropclaude
andcommitted
Fix release workflow for workspace packages
Pre-bundle server to resolve @plannotator/server before cross-compiling. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 245c07a commit 48ef4f7

1 file changed

Lines changed: 8 additions & 5 deletions

File tree

.github/workflows/release.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,26 +25,29 @@ jobs:
2525
- name: Build UI
2626
run: bun run build:hook
2727

28+
- name: Bundle server (resolve workspace packages)
29+
run: bun build apps/hook/server/index.ts --outfile apps/hook/server/bundle.js --target=bun
30+
2831
- name: Compile binaries (cross-compile all targets)
2932
run: |
3033
# macOS ARM64
31-
bun build apps/hook/server/index.ts --compile --target=bun-darwin-arm64 --outfile plannotator-darwin-arm64
34+
bun build apps/hook/server/bundle.js --compile --target=bun-darwin-arm64 --outfile plannotator-darwin-arm64
3235
sha256sum plannotator-darwin-arm64 > plannotator-darwin-arm64.sha256
3336
3437
# macOS x64
35-
bun build apps/hook/server/index.ts --compile --target=bun-darwin-x64 --outfile plannotator-darwin-x64
38+
bun build apps/hook/server/bundle.js --compile --target=bun-darwin-x64 --outfile plannotator-darwin-x64
3639
sha256sum plannotator-darwin-x64 > plannotator-darwin-x64.sha256
3740
3841
# Linux x64
39-
bun build apps/hook/server/index.ts --compile --target=bun-linux-x64 --outfile plannotator-linux-x64
42+
bun build apps/hook/server/bundle.js --compile --target=bun-linux-x64 --outfile plannotator-linux-x64
4043
sha256sum plannotator-linux-x64 > plannotator-linux-x64.sha256
4144
4245
# Linux ARM64
43-
bun build apps/hook/server/index.ts --compile --target=bun-linux-arm64 --outfile plannotator-linux-arm64
46+
bun build apps/hook/server/bundle.js --compile --target=bun-linux-arm64 --outfile plannotator-linux-arm64
4447
sha256sum plannotator-linux-arm64 > plannotator-linux-arm64.sha256
4548
4649
# Windows x64
47-
bun build apps/hook/server/index.ts --compile --target=bun-windows-x64 --outfile plannotator-win32-x64.exe
50+
bun build apps/hook/server/bundle.js --compile --target=bun-windows-x64 --outfile plannotator-win32-x64.exe
4851
sha256sum plannotator-win32-x64.exe > plannotator-win32-x64.exe.sha256
4952
5053
- name: Upload artifacts

0 commit comments

Comments
 (0)