Auto-tag and release on version bump merge to main#12
Merged
teallarson merged 3 commits intomainfrom Mar 4, 2026
Merged
Conversation
When package.json is changed on main (e.g. version bump merged), this workflow reads the version, and if that tag doesn't exist yet, creates and pushes it — which triggers the existing release workflow to publish to npm and create a GitHub Release. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Replace the manual tag-triggered release workflow with a single workflow that runs on merge to main when package.json changes. It checks if the version is already tagged, and if not, creates the tag, publishes to npm with provenance, and creates a GitHub Release. Removes the separate auto-tag.yml since release.yml now handles everything. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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
auto-tag.ymlworkflow that runs on pushes tomainwhenpackage.jsonchangespackage.json, checks if thatv*tag exists, and creates it if notrelease.ymlworkflow (npm publish + GitHub Release)New release flow:
package.jsonmainNo changes to the existing
release.yml— manual tagging still works too.Test plan
package.jsonversionv*tag🤖 Generated with Claude Code