Skip to content

Mark prerelease versions as prerelease in GitHub Releases#104

Merged
kjiang-ac merged 3 commits intomainfrom
auggie-prerelease-flag
Mar 12, 2026
Merged

Mark prerelease versions as prerelease in GitHub Releases#104
kjiang-ac merged 3 commits intomainfrom
auggie-prerelease-flag

Conversation

@kjiang-ac
Copy link
Contributor

@kjiang-ac kjiang-ac commented Mar 11, 2026

Summary

Mark prerelease versions correctly in GitHub Releases so that Intent's binary download flow pulls stable releases instead of prereleases.

Problem

The bun-compile workflow creates GitHub Releases for prerelease versions (e.g., v0.19.0-prerelease.10) without setting the prerelease flag. GitHub's /releases/latest endpoint treats them as the latest release, which means Intent's binary download URL (/releases/latest/download/auggie-darwin-arm64) pulls a prerelease binary instead of the current stable release.

Changes

  • Detect if the version string contains "prerelease" and pass --prerelease to gh release create
  • This ensures /releases/latest correctly resolves to the most recent stable release

Context

Intent is adding a 1-click auggie install flow that downloads pre-built binaries from GitHub Releases when Node.js is unavailable. It relies on /releases/latest/download to always point to a stable release. See Intent PR #165.

Test

Verified that prereleases get prerelease tag

Detects if the version string contains 'prerelease' and adds the
--prerelease flag to gh release create accordingly.
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

The logic for detecting prerelease versions and adding the --prerelease flag looks correct. One suggestion below to reduce command duplication and lower future maintenance risk.


🤖 Automated review complete. Please react with 👍 or 👎 on the individual review comments to provide feedback on their usefulness.

…kflow

Agent-Id: agent-4b7b87c8-7e28-4dd8-9fc8-cd59b6fb4947
@kjiang-ac
Copy link
Contributor Author

auggie review

@augment-app-staging
Copy link

augment-app-staging bot commented Mar 11, 2026

🤖 Augment PR Summary

Summary: Updates the bun-compile GitHub Actions workflow to mark prerelease version tags as GitHub prereleases.

Why: Keeps /releases/latest pointing at the most recent stable release so downstream binary download flows don�t pull prerelease builds.

🤖 Was this summary useful? React with 👍 or 👎

Copy link

@augment-app-staging augment-app-staging bot left a comment

Choose a reason for hiding this comment

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

Review completed. No suggestions at this time.

Items Reviewed
  • ✅ Check review guidelines
  • ✅ Verify prerelease detection in release workflow
  • ✅ Review .github/workflows/bun-compile.yml

Comment augment review to trigger a new review at any time.

@kjiang-ac kjiang-ac marked this pull request as ready for review March 11, 2026 23:58
Copy link

@augment-app-staging augment-app-staging 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 Triage: Low-risk — Auto-approvable

Summary: Adds --prerelease flag to gh release create in the bun-compile CI workflow when the version string contains "prerelease".

Changes:

  • .github/workflows/bun-compile.yml — 5 lines added: detect prerelease version string and conditionally pass --prerelease flag

Risk assessment:

  • ✅ Single file changed, CI workflow only
  • ✅ No application code changes
  • ✅ Simple string check (*prerelease*) with clear intent
  • ✅ Only affects GitHub Release metadata (prerelease flag), not build artifacts
  • ✅ Fixes a real issue where /releases/latest incorrectly resolves to prerelease builds

This PR is a minimal CI fix and can be safely auto-approved.


Reach out to #feedback-code-review-agent for feedback

Copy link

@augment-app-staging augment-app-staging bot left a comment

Choose a reason for hiding this comment

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

Review completed. No suggestions at this time.

Items Reviewed
  • ✅ Check review guidelines
  • ✅ Verify prerelease detection & release creation behavior
  • ✅ Review .github/workflows/bun-compile.yml

Comment augment review to trigger a new review at any time.

@kjiang-ac kjiang-ac requested a review from a team March 12, 2026 00:21
@kjiang-ac kjiang-ac merged commit 023f661 into main Mar 12, 2026
@kjiang-ac kjiang-ac deleted the auggie-prerelease-flag branch March 12, 2026 00:32
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.

2 participants