Skip to content

fix(ci): tag-major prepends v so floating tag matches docs#11

Merged
lesnik512 merged 1 commit into
mainfrom
bugfix/tag-major-v-prefix
Jun 9, 2026
Merged

fix(ci): tag-major prepends v so floating tag matches docs#11
lesnik512 merged 1 commit into
mainfrom
bugfix/tag-major-v-prefix

Conversation

@lesnik512

Copy link
Copy Markdown
Member

Summary

Caught after merging #10 and observing the dogfood workflow create tag 0.4.0 (bare semver, this project's convention) — surfaced the gap that tag-major.yml would produce a floating tag named 0, not the v0 our docs promise.

  • tag-major.yml: strip any leading v from RELEASE_TAG, then unconditionally prepend v to the major segment. Works for both bare (0.4.0) and v-prefixed (v0.4.0) release styles.
  • planning/releases/0.4.0.md Steps 2 + 3: corrected tag name from v0.4.00.4.0; bootstrap command now points v0 at 0.4.0 (not v0.4.0, which doesn't exist).

Test plan

  • CI green on this PR (lint, pytest matrix, action-smoke).
  • After merge: cut the 0.4.0 release per the corrected runbook. tag-major.yml fires on subsequent releases and creates v0 (next release would update it).
  • For 0.4.0 specifically: run the manual bootstrap per Step 3 to create the initial v0 tag.

This project tags releases bare-semver (`0.4.0`), but action consumers
follow the GHA convention `uses: modern-python/semvertag@v0`. The
original tag-major.yml computed `major="${RELEASE_TAG%%.*}"` which on
a `0.4.0` release produces `0`, not `v0` — so `@v0` would resolve to
nothing.

Strip any leading `v` from RELEASE_TAG, then unconditionally prepend
`v` to the major segment. Works for both bare (`0.4.0`) and
v-prefixed (`v0.4.0`) release styles.

Runbook Steps 2 + 3 corrected to match: release tag is `0.4.0` (not
`v0.4.0`); manual `v0` bootstrap points at `0.4.0`, not `v0.4.0`.
@lesnik512 lesnik512 self-assigned this Jun 9, 2026
@lesnik512 lesnik512 merged commit 923e212 into main Jun 9, 2026
6 checks passed
@lesnik512 lesnik512 deleted the bugfix/tag-major-v-prefix branch June 9, 2026 05:15
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