Skip to content

Auto-tag and release on version bump merge to main#12

Merged
teallarson merged 3 commits intomainfrom
auto-tag-on-merge
Mar 4, 2026
Merged

Auto-tag and release on version bump merge to main#12
teallarson merged 3 commits intomainfrom
auto-tag-on-merge

Conversation

@teallarson
Copy link
Copy Markdown
Collaborator

Summary

  • Adds a new auto-tag.yml workflow that runs on pushes to main when package.json changes
  • Reads the version from package.json, checks if that v* tag exists, and creates it if not
  • The new tag then triggers the existing release.yml workflow (npm publish + GitHub Release)

New release flow:

  1. Bump version in package.json
  2. Merge to main
  3. Tag is auto-created → release workflow fires → published to npm

No changes to the existing release.yml — manual tagging still works too.

Test plan

  • Merge this PR, then merge a PR that bumps package.json version
  • Verify the auto-tag workflow creates the correct v* tag
  • Verify the release workflow triggers and publishes to npm

🤖 Generated with Claude Code

teallarson and others added 3 commits March 4, 2026 18:07
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>
@teallarson teallarson marked this pull request as ready for review March 4, 2026 23:10
@teallarson teallarson merged commit 6061af6 into main Mar 4, 2026
@teallarson teallarson deleted the auto-tag-on-merge branch March 4, 2026 23:11
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