Skip to content

fix: explicitly mark semver releases as Latest#117

Merged
jpr5 merged 1 commit intomainfrom
fix/explicit-latest-on-release
Apr 18, 2026
Merged

fix: explicitly mark semver releases as Latest#117
jpr5 merged 1 commit intomainfrom
fix/explicit-latest-on-release

Conversation

@jpr5
Copy link
Copy Markdown
Contributor

@jpr5 jpr5 commented Apr 18, 2026

Problem

gh release create is invoked without --latest, leaving GitHub's default selector to decide which Release wears the "Latest" badge. When other Release objects exist (notably the floating v1 Release that has tracked the major version), GitHub can race and flip the badge to a non-semver release unpredictably.

Fix

Add --latest to the gh release create invocation in publish-release.yml so every future semver release unambiguously claims Latest.

-          gh release create "${TAG}" --generate-notes --title "${TAG}" --verify-tag
+          gh release create "${TAG}" --generate-notes --title "${TAG}" --verify-tag --latest

Notes

  • Orthogonal to fix: chain docker publish from release workflow #116 (Docker publish chain). Independently useful.
  • The floating v1 Release object is being deleted separately as a one-shot ops action; this PR is defense in depth so the badge can never race again, regardless of what other Release objects exist now or in the future.
  • Single-line YAML change. Format/lint/build/test all pass locally.

Do not merge. Do not enable auto-merge.

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new bot commented Apr 18, 2026

Open in StackBlitz

npm i https://pkg.pr.new/@copilotkit/aimock@117

commit: 8dc44ae

@jpr5 jpr5 merged commit 63abd0b into main Apr 18, 2026
11 checks passed
@jpr5 jpr5 deleted the fix/explicit-latest-on-release branch April 18, 2026 16:19
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