Skip to content

revert: restore release script for workflow#134

Merged
sigmachirality merged 2 commits into
mainfrom
dt/fix-release-workflow
Apr 28, 2025
Merged

revert: restore release script for workflow#134
sigmachirality merged 2 commits into
mainfrom
dt/fix-release-workflow

Conversation

@sigmachirality
Copy link
Copy Markdown
Member

Fixes #132 which broke the github release workflow release.ts script.

@semanticdiff-com
Copy link
Copy Markdown

semanticdiff-com Bot commented Apr 28, 2025

Review changes with  SemanticDiff

Changed Files
File Status
  src/scripts/release.ts  0% smaller

Copy link
Copy Markdown
Contributor

@greptile-apps greptile-apps Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR Summary

This PR restores the release automation script that handles version management, multi-architecture binary compilation, and GitHub release creation for the CLI.

  • Added error handling for version bumping in src/scripts/release.ts with support for major, minor, patch, and prerelease versions
  • Implemented multi-architecture binary compilation for x86_64/aarch64 on Linux/Darwin in src/scripts/release.ts
  • Added zip file validation checks before GitHub release creation in src/scripts/release.ts
  • Integrated with GitHub CLI for automated release creation and asset uploading
  • Added graceful interrupt handling with confirmation prompt for release process

1 file(s) reviewed, 2 comment(s)
Edit PR Review Bot Settings | Greptile

Comment thread src/scripts/release.ts
Comment on lines +16 to +21
const [major, minor, patch] = version.split(".").map((v) =>
Number.parseInt(
// Remove everything after the - if there is one
v.includes("-") ? v.split("-")[0] : v,
)
);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

style: Version parsing could throw on invalid version strings. Add try/catch and validation

Comment thread src/scripts/release.ts
Comment on lines +92 to +101
async function asyncSpawn(cmds: string[]) {
console.log("cmds", cmds);
const result = await new Deno.Command(cmds[0], {
args: cmds.slice(1),
}).output();

return {
exitCode: result.success ? 0 : 1,
};
}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

style: asyncSpawn doesn't capture stderr output which could hide important error details

@sigmachirality sigmachirality merged commit 133903d into main Apr 28, 2025
1 check passed
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