feat: maintain a moving minor tag for action pinning#127
Merged
Conversation
Re-point a MAJOR.MINOR git tag (e.g. 0.8) at each patch release so action consumers can pin `@0.8` and pick up `0.8.x` fixes automatically, mirroring `actions/checkout@v4`-style moving tags. In 0.x a minor bump signals a breaking change, so the minor series is the compatibility boundary — no moving `@0` tag is maintained. The tag has a single dot and cannot match the `*.*.*` publish trigger, so it never causes a re-run loop; prereleases are skipped. Documents the pinning options in the README (GitHub `uses:` refs have no wildcard, so `@0.8.x` is not valid). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Code ReviewRisk: Low — I did not find blocking defects in this MR; it is safe to merge as-is. This MR updates the release workflow to force-move a Notes:
Review usage: 16,465 in (11,264 cached) / 1,240 out tokens — $0.0344 (cloudflare-ai-gateway/gpt-5.4, thinking: medium) Reviewed by @weareikko/code-review v0.8.3 for commit 007ff5a. |
This was referenced Jul 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
Consumers want to pin the action to a minor series and get patches automatically, e.g.
@0.8.x. GitHubuses:refs don't support wildcards, so@0.8.xis invalid — the established pattern (à laactions/checkout@v4) is a moving tag re-pointed to each release.What
publish.yml: after a stable release, force-move aMAJOR.MINORtag (e.g.0.8) to the release commit and push it. Consumers can then pin@0.8and receive0.8.xfixes automatically.@0.8with a "Pinning the ref" note covering moving tag vs exact patch vs SHA vs@main.Design notes
@0tag. Per the project's 0.x rule, a minor bump marks a breaking change, so the minor series is the compatibility boundary. A moving major tag would cross0.8 → 0.9breaking changes and mislead consumers.0.8) and cannot match the*.*.*publish trigger, so pushing it never re-runs the workflow.if: env.IS_PRERELEASE == 'false'), so anrc/betatag never advances the stable minor pointer.GITHUB_TOKEN(job already hascontents: write); a lightweight force tag needs no git identity.The
0.8tag pointing at 0.8.3 will be created immediately after merge so@0.8works today; the workflow keeps it current from the next release on.🤖 Generated with Claude Code