Skip to content

ci(release): keep the newest adcp major as the Latest release - #2005

Merged
bokelley merged 1 commit into
mainfrom
chore/main-keep-newest-major-latest
Dec 4, 2026
Merged

bokelley merged 1 commit into
mainfrom
chore/main-keep-newest-major-latest

Conversation

@bokelley

@bokelley bokelley commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

Once SDK 10.0.0 ships from next, every 9.x maintenance release from main would take GitHub's Latest badge from it, because GitHub marks each new release Latest by default.

Why not "make-latest": false: release-please added make-latest in 17.12.0. The pinned googleapis/release-please-action@45996ed1 (v5) bundles release-please 17.6.0, and even the action's current main only bundles 17.6.1. The config key would be silently ignored.

What this does: after main creates an adcp release, a new step in release-please.yml re-marks the highest stable vX.Y.Z adcp release as Latest (gh release edit <tag> --latest). It uses the release App token, which already has contents: write.

  • Ordering is numeric semver, so v10.0.0 beats v9.10.2.
  • adcp-reporting-storage-v* tags don't match the pattern, and prereleases and drafts are excluded.
  • Before 10.0.0 ships it's a no-op in effect: the newest stable release is the one just created.
  • It fails loudly if no stable release is found.

Verified: against the real release list, the selector picks v9.7.1, today's newest stable release. Against a sample containing v9.7.1, v10.0.0, v9.10.2 and a storage tag, it picks v10.0.0. The YAML parses.

Not covered: next's own release-please-next.yml. Once next releases 10.0.0 stable, GitHub marks it Latest anyway, which is what we want.

Workflow change: needs Brian's review.

🤖 Generated with Claude Code

GitHub marks every new release Latest, so once SDK 10 ships from next, each
9.x maintenance release from main would take the Latest badge from 10.0.0.
release-please's make-latest option arrived in release-please 17.12, but the
pinned release-please-action v5 bundles 17.6 (and the action's main bundles
17.6.1), so the config key would be ignored. After main creates an adcp
release, re-mark the highest stable vX.Y.Z adcp release as Latest. Storage
tags carry a component prefix and prereleases are excluded, so neither can
take the badge.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@bokelley
bokelley merged commit cb9e86d into main Dec 4, 2026
44 checks passed
@bokelley
bokelley deleted the chore/main-keep-newest-major-latest branch December 4, 2026 10:12
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