Repository navigation
Restore automatic releases on main push with version allocation - #54
Merged
Merged
Conversation
The #53 rebuild made release.yml tag-only, so pushes to main stopped packaging and publishing releases. Restore the main push trigger: the verify job allocates an annotated version tag (the main commit itself when the package version is unreleased, otherwise a version-only snapshot at the next patch), reuses it on reruns, and skips already public releases. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JysUCujZTRQGmKbMN6DW2s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JysUCujZTRQGmKbMN6DW2s
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.
Summary
Restores the ability to automatically publish releases on every push to
mainby implementing a version allocation system. Previously, releases only triggered on manual tag creation, causing old versions to miss updates. This change reintroduces automatic tagging while maintaining idempotency and supporting both direct tagging and snapshot-based releases.Key Changes
New script
prepare-main-release.mjs: Implements the core release allocation logicUpdated
release.ymlworkflow:push.branches.mainand tag pushesverifyjob runs serialized (via concurrency group) to allocate versions atomicallyshould_releaseoutput)prepare-main-release.mjs --verifyfor release source validationNew test suite
prepare-main-release.test.mjs: Comprehensive tests coveringUpdated documentation
macos-release-workflow.md:Implementation Details
Release-Source-SHAtrailer in commit messages to track the original main commit for snapshot releasesresolveReleaseSource()ensures release commits are either on main or valid snapshots with only version field changesverifyjob ensures only one version allocation per main pushhttps://claude.ai/code/session_01JysUCujZTRQGmKbMN6DW2s