ci: add tag-triggered release workflow#19
Merged
Merged
Conversation
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
Closes the recurring "merged but never released" gap. v0.4.0, v0.4.1, and v0.5.0 all merged to main with a bumped
plugin.jsonbut no tag/release, so the marketplace kept serving an older version until a release was cut by hand each time.This adds
.github/workflows/release.yml: on av*.*.*tag push it creates the GitHub release automatically.How it works
git tag -a vX.Y.Z && git push origin vX.Y.Z)..claude-plugin/plugin.jsonversion (fails loudly on mismatch, so you can't ship a tag that disagrees with the manifest).## [X.Y.Z]section fromCHANGELOG.mdas the release notes (fails if there is no such section).gh release create vX.Y.Z --notes-file ... --latest.You still decide when to release (by tagging); the workflow removes the manual
gh release createstep and the risk of forgetting it. No third-party actions are used (onlyactions/checkoutand the built-ingh), and it uses the built-ingithub.tokenwithcontents: write.Also
CONTRIBUTING.mddocumenting the tag-and-push flow and the "a merged PR alone does not publish" caveat.Testing
0.5.0: it returns exactly the### Addedblock.bats tests/: 81 tests, all green.Note: this workflow only fires on future tag pushes; v0.5.0 was already released manually.