Skip to content

ci(release): auto-push version tag on merge to main#16

Merged
milstan merged 1 commit intomainfrom
milstan/auto-tag-on-version-bump
Apr 21, 2026
Merged

ci(release): auto-push version tag on merge to main#16
milstan merged 1 commit intomainfrom
milstan/auto-tag-on-version-bump

Conversation

@milstan
Copy link
Copy Markdown
Contributor

@milstan milstan commented Apr 21, 2026

Summary

Removes the manual `git tag` step between landing a version bump and the actual npm publish — the gap that left 0.2.2 sitting unreleased on main for hours.

New `auto-tag.yml` triggers on push to main when either package's `package.json` changes, reads the version, and pushes `-v` (mcp or leadclaw) if that tag doesn't already exist. Existing `release.yml` then fires on the tag push — no changes to the working publish pipeline. Idempotent: re-runs on the same version no-op.

Test plan

  • Merge this PR
  • Next version-bump PR (any subsequent 0.2.x or 0.3.0) should produce `mcp-v` / `leadclaw-v` tags + npm publish without manual intervention
  • Check the auto-tag workflow run in the Actions tab after merge — should no-op since 0.2.2 tags already exist

🤖 Generated with Claude Code

Removes the manual `git tag mcp-v<ver> && git push` step that was getting
forgotten between the version-bump PR landing and the actual npm publish
(0.2.2 sat on main for hours before someone noticed).

How: new `auto-tag.yml` triggers on push to main when either
`packages/mcp/package.json` or `packages/leadclaw/package.json` changes,
reads the version, and pushes `<pkg>-v<ver>` if that tag doesn't already
exist. Existing `release.yml` then fires on the tag push (unchanged).
Idempotent: re-runs on the same version no-op.

Updated `release.yml` header comment so the runbook reflects automatic
tagging rather than the old manual `git tag` recipe.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@milstan milstan merged commit a8f712c into main Apr 21, 2026
1 check passed
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