release: a -prerelease flag numbering X-pre.N from the tags #49

Closed
opened 2026-11-25 21:07:52 +00:00 by mikluko · 0 comments
Owner

A pre-release that touches no file: the version comes from the notes as release computes it, the number from the tags already cut.

changelog release -prerelease
  X = the version the notes call for (or -version, -bump)
  N = highest N among tags vX-pre.N, plus one; 1 where there is none
  outputs: version=X-pre.N, notes, prerelease=true
  CHANGELOG.md and .changelog/ are left as they are

The release action takes it as a prerelease input. A workflow then cuts a pre-release by tagging HEAD v$version with no commit, and the final release folds the same fragments as X. Pre-release tags never become the reference tag under the default reference-tags: final, so the tag-dependent checks are unaffected.

A shallow checkout may lack the tags N is counted from, so -prerelease refuses one.

A pre-release that touches no file: the version comes from the notes as `release` computes it, the number from the tags already cut. ```text changelog release -prerelease X = the version the notes call for (or -version, -bump) N = highest N among tags vX-pre.N, plus one; 1 where there is none outputs: version=X-pre.N, notes, prerelease=true CHANGELOG.md and .changelog/ are left as they are ``` The `release` action takes it as a `prerelease` input. A workflow then cuts a pre-release by tagging HEAD `v$version` with no commit, and the final release folds the same fragments as `X`. Pre-release tags never become the reference tag under the default `reference-tags: final`, so the tag-dependent checks are unaffected. A shallow checkout may lack the tags N is counted from, so `-prerelease` refuses one.
mikluko changed title from release: a -candidate flag numbering a release candidate from the tags to release: a -prerelease flag numbering X-pre.N from the tags 2026-11-25 21:11:56 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
mikluko/changelog#49
No description provided.