Skip to content

fix: restore build script for release packaging - #19

Merged
anandgupta42 merged 1 commit into
mainfrom
fix/release-build-script
Mar 3, 2026
Merged

fix: restore build script for release packaging#19
anandgupta42 merged 1 commit into
mainfrom
fix/release-build-script

Conversation

@anandgupta42

Copy link
Copy Markdown
Contributor

Summary

  • Restore .trim() on models API JSON to prevent syntax error in generated models-snapshot.ts (trailing whitespace broke as const expression)
  • Fix archive path for scoped package names (@altimate/cli-*) — the ../../ relative path failed because the scope adds a directory level
  • Remove gh release upload from build.ts — the github-release workflow job already handles artifact uploads via softprops/action-gh-release
  • Add CHANGELOG.md entry for v0.1.5

Context

The v0.1.5 release CI was failing with two sequential issues:

  1. Expected ";" but found "const" in models-snapshot.ts — caused by missing .trim()
  2. tar: Cannot open: No such file or directory — caused by scoped package name creating nested path with ../../
  3. gh: To use GitHub CLI... set GH_TOKEN — redundant gh release upload in build step without auth

Test plan

  • Merge this PR
  • Tag v0.1.5 on main
  • Verify release workflow completes: build, npm publish, PyPI publish, GitHub release

🤖 Generated with Claude Code

- Restore .trim() on models API JSON to prevent syntax error in
  generated models-snapshot.ts
- Fix archive path for scoped package names (@altimate/cli-*) in
  release tarball/zip creation
- Remove gh release upload from build.ts (handled by github-release job)
- Add CHANGELOG.md entry for v0.1.5

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@anandgupta42
anandgupta42 merged commit c61575b into main Mar 3, 2026
0 of 4 checks passed
@kulvirgit
kulvirgit deleted the fix/release-build-script branch March 10, 2026 21:07
anandgupta42 added a commit that referenced this pull request Mar 17, 2026
- Restore .trim() on models API JSON to prevent syntax error in
  generated models-snapshot.ts
- Fix archive path for scoped package names (@altimate/cli-*) in
  release tarball/zip creation
- Remove gh release upload from build.ts (handled by github-release job)
- Add CHANGELOG.md entry for v0.1.5

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant