feat: release-please + auto-merge + marketplace-dispatch wiring#1
Merged
Conversation
Adds the standard plugin-release CI chain so plugins scaffolded from this template ship versions automatically on every PR merge: - `.github/workflows/release-please.yml` — opens release PRs on `feat:` / `fix:` commits, auto-merges them via PAT, creates tags, and fires a cross-repo dispatch to fnrhombus/claude-plugins' update-marketplace.yml so the new tag lands in the marketplace within seconds (vs. daily cron). - `.github/workflows/auto-merge.yml` — enables auto-merge on every non-draft PR. - `release-please-config.json` — `release-type: simple` with `.claude-plugin/plugin.json` listed as an extra-file so its `version` field tracks the release tag. Language-agnostic; plugins with a `package.json` (or other manifests) can add them as additional extra-files entries. - `.release-please-manifest.json` — starts at 0.1.0. Also: - Drops `"hooks": "./hooks/hooks.json"` from the template plugin.json. Claude Code auto-loads hooks/hooks.json; listing it manually triggers a duplicate-load error. - Updates CLAUDE.md: replaces the manual "bump version + tag + dispatch" publishing steps with a description of the now-automated flow, adds an AUTOMERGE_PAT secret to the first-time-setup checklist, and explains why a PAT is needed (workflow chaining + cross-repo dispatch).
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
Bring the full plugin-release CI chain into the template so new plugins inherit:
release-please.yml→ opens release PRs onfeat:/fix:commits, auto-merges them, creates tags, dispatchesupdate-marketplace.ymlonfnrhombus/claude-pluginsso the new tag lands in the marketplace within seconds instead of waiting up to ~24h for cron.auto-merge.yml→ enables auto-merge on every non-draft PR.release-please-config.json→release-type: simplewith.claude-plugin/plugin.jsonlisted as an extra-file (language-agnostic)..release-please-manifest.json→ starts at 0.1.0.Also fixes a latent bug in the template's
.claude-plugin/plugin.json: the"hooks": "./hooks/hooks.json"line causes a duplicate-load error in Claude Code (the standard hooks file is auto-loaded). Updates CLAUDE.md to document the now-automated flow and the newAUTOMERGE_PATsecret requirement.Test plan
gh repo create --template fnrhombus/claude-code-plugin-templateinherits the workflow filesAUTOMERGE_PAT, the firstfeat:commit onmainwalks the chain end-to-end (release PR → tag → marketplace dispatch fires)