Releases: armcknight/tools
Releases · armcknight/tools
4.0.0
Added
vrsn --commit— after writing the new version, stages the changed file and creates a commit with the message"bumped version from X to Y"(or"bumped build from X to Y"in--numericmode); errors if other changes are staged unless--stashis also givenvrsn --stash— before committing, stashes any other staged changes viagit stash --staged, then restores them after; requires--commitprepare-release --build-number-key KEY— auto-increments the numeric value atKEYin--fileviavrsn -nand appends the result as semver build metadata (+N) in the changelog entry and git tag; supersedes--build-numberwhen both are givenprepare-releasevalidates that the marketing version was bumped before running, using the changelog as the source of truth (compares the version file against the most recent non-RC section header); errors with an actionable message if the version was not bumped
Changed
prepare-releaseno longer acceptspatch,minor, ormajoras arguments and no longer bumps version files internally; version bumping is now the caller's responsibility (e.g.make patch/make minor/make major)prepare-releasecomponent argument is now optional: passrcfor a release candidate, or omit it for a final releaseprepare-release --keyis now optional; when omitted, the version file is treated as a plainVERSION-style file containing only the version string (noKEY = VALUEformat required)
3.0.0
Added
prepare-release rc— create a release candidate tag (<version>-RC<N>) from the[Unreleased]changelog section without bumping the version or migrating the changelog; RC number is auto-detected from existing tags or overridden with--rc-numberprepare-release --build-number <N>— append semver build metadata (+N) to the changelog entry heading and git tag in both release and RC modes; the version file itself is not affected (mirrors iOSMARKETING_VERSION/CURRENT_PROJECT_VERSIONseparation)
Changed
changetag --namenow exclusively controls which changelog section to look up; the tag annotation title is always the tag name (previously--namealso overrode the annotation title)
2.0.0
Changed
prepare-releaseno longer requires--tools-bin; tools are resolved from PATH (Homebrew install)
1.1.0
Added
prepare-github-release— create GitHub releases from git tags with changelog-derived release notes viagh