Skip to content

Tag and publish the release when a version bump reaches main - #5

Merged
ilien-dev merged 1 commit into
mainfrom
feature/release-workflow
Sep 25, 2026
Merged

ilien-dev merged 1 commit into
mainfrom
feature/release-workflow

Conversation

@ilien-dev

Copy link
Copy Markdown
Owner

Releases 1.0.0 to 1.2.0 were tagged and published by hand, so a merged version bump did not show up as a release until someone did it. This adds a workflow that does it on merge.

It runs when .claude-plugin/marketplace.json changes on main, and can also be started by hand. It reads the version and stops with an error if CITATION.cff has a different one. If the tag already exists it does nothing, so running it again is safe. Otherwise it tags the merge commit with an annotated vX.Y.Z and publishes the release, with the merged pull request's description as the notes. When it finds no pull request it falls back to GitHub's generated notes.

This pull request does not change the version, so merging it publishes nothing. actionlint passes, and I checked the version read and the pull request lookup locally against the 1.2.0 merge commit. The workflow itself has not run yet; the next version bump will be its first run. CONTRIBUTING.md has a new Releases section, run through check.sh.

.github/workflows/release.yml runs when .claude-plugin/marketplace.json
changes on main. It fails if CITATION.cff has a different version, does
nothing if the tag already exists, and otherwise tags the commit with an
annotated vX.Y.Z and publishes the GitHub release with the merged pull
request's description as its notes. CONTRIBUTING.md explains the steps.
@ilien-dev
ilien-dev merged commit d807289 into main Sep 25, 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