Skip to content

ci: add refactor prerelease workflow - #53

Closed
Hweinstock wants to merge 5 commits into
refactorfrom
feat/prerelease-refactor
Closed

Hweinstock wants to merge 5 commits into
refactorfrom
feat/prerelease-refactor

Conversation

@Hweinstock

@Hweinstock Hweinstock commented Sep 24, 2026 •

Copy link
Copy Markdown
Owner

Summary

Adds .github/workflows/prerelease.yml for the main and refactor branches.

The workflow:

  • Builds the CLI tarball.
  • Sets the package and executable version to 1.0.0-<last six characters of the commit hash>.
  • Compiles standalone executables for macOS x64/arm64, Linux x64/arm64, and Windows x64/arm64.
  • Creates or refreshes prerelease for main and prerelease-refactor for refactor.
  • Adds release-page download links and installation instructions.
  • Omits the separate CDK repository packaging flow.

Spec

Implement the missing prerelease mechanism based on the existing main-branch prerelease workflow. The main branch uses the prerelease tag; other branches use prerelease-<branch>, with a tarball and executables for each platform.

Verification

Passed locally:

  • bun install --frozen-lockfile
  • bun run typecheck
  • bunx prettier --check .github/workflows/prerelease.yml
  • YAML parsing validation
  • bun run build
  • bun pm pack --destination /tmp --ignore-scripts
  • bun run compile

The compile step produced all six expected platform executables.
The custom version was also validated in a tarball and compiled Linux executable.

Reproduction

  1. Merge or push this workflow to the main or refactor branch.
  2. Push a new commit to either branch, or manually dispatch the workflow.
  3. Open the prerelease or prerelease-refactor release.
  4. Download the CLI tarball or the executable matching the target platform from the release notes.

Comment thread .github/workflows/prerelease.yml Outdated

on:
push:
branches: [refactor]

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

lets have this trigger on main and refactor.

Comment thread .github/workflows/prerelease.yml Outdated

jobs:
prerelease:
if: github.ref == 'refs/heads/refactor'

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

avoid this gate, its unecessary?

Comment thread .github/workflows/prerelease.yml Outdated
runs-on: ubuntu-latest
timeout-minutes: 30
env:
RELEASE_TAG: prerelease-refactor

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

lets do prerelease if branch is main, if branch is not main then prerelease-{branchName}.

Comment thread .github/workflows/prerelease.yml Outdated
| Windows x64 | [agentcore-windows-x64.exe]($release_url/agentcore-windows-x64.exe) |
| Windows arm64 | [agentcore-windows-arm64.exe]($release_url/agentcore-windows-arm64.exe) |

To download an executable from a shell:

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

lets remove these instructions for the executable, keep it lean.

Comment thread .github/workflows/prerelease.yml Outdated
@@ -0,0 +1,92 @@
name: Prerelease Refactor

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

lets just name it prerelease

@Hweinstock Hweinstock closed this Sep 25, 2026
@Hweinstock
Hweinstock deleted the feat/prerelease-refactor branch September 25, 2026 14:13
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