Skip to content

Move the v0 tag to each new stable release - #15

Merged
Moonwalker1307 merged 1 commit into
mainfrom
claude/project-thread-zoebhu
Nov 17, 2026
Merged

Moonwalker1307 merged 1 commit into
mainfrom
claude/project-thread-zoebhu

Conversation

@Moonwalker1307

Copy link
Copy Markdown
Owner

Requested by RT · project thread

What

  • New .github/workflows/major-tag.yml: on push of a v*.*.* tag (which creating a GitHub release does), force-moves the major tag (v0 for v0.x.y, v1 for v1.x.y) to that commit using GITHUB_TOKEN with contents: write.
    • Skips prereleases (v0.3.0-beta.1).
    • Only moves forward: a later v0.2.5 hotfix tag after v0.3.0 leaves v0 on v0.3.0.
    • Refuses tags not on main, same as publish.yml.
    • workflow_dispatch with a tag input, to point v0 at an existing release (e.g. v0.2.0 now).
  • publish.yml now triggers on v*.*.* instead of v*, so the moving v0 tag can never publish. (Pushes made with GITHUB_TOKEN don't start other workflows anyway, so this is a second guard.)
  • README: short "Releasing" section.

Testing

Ran the tag-moving script locally against a scratch repo with tags v0.1.0..v0.3.0 and v0.4.0-beta.1: moves on newest stable, skips older, skips prerelease, no-op when already in place.


Generated by Claude Code

Adds major-tag.yml, which force-moves v0 to the commit of each pushed
v0.x.y tag (skipping prereleases, older tags and tags not on main), with
a manual run for pointing it at an existing release. publish.yml now
only matches v*.*.* so the moving v0 tag never publishes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013ADYoCbEvPjLR7zyqirBSo
@Moonwalker1307 Moonwalker1307 self-assigned this Nov 16, 2026
@Moonwalker1307
Moonwalker1307 merged commit 8d1d3d8 into main Nov 17, 2026
1 check passed
@Moonwalker1307
Moonwalker1307 deleted the claude/project-thread-zoebhu branch November 17, 2026 07:03
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