release
Cut a release of vale-mcp. Bumps the version, finalizes CHANGELOG, opens a release PR, then (after it is merged) creates the GitHub Release, which triggers the npm publish workflow. Use when the user
Files1
View on GitHubSKILL.md.claude/skills/release/SKILL.md
GitHubRelease vale-mcp
Publishing is automated: creating a GitHub Release runs
.github/workflows/publish.yml, which does npm ci + npm publish using
npm trusted publishing (OIDC; no token or secret). The package's npm
settings must list a trusted publisher: repo ChrisChinchilla/Vale-MCP,
workflow publish.yml. Note a release-triggered workflow runs the workflow
file as of the tag, so workflow fixes need a new tag, not just a re-run. Never run npm publish locally.
The release PR itself changes nothing outward-facing; creating the GitHub
Release does, so only do that step when the user has asked for the release.
To publish a build for testing first, use the prerelease skill (-rc.N
versions go to the next tag, never latest). This skill is for stable
versions: the workflow refuses a stable version flagged as a prerelease.
1. Preconditions
git checkout main && git pull; working tree clean (ignore untracked.idea/).- CI green on
main:gh run list --workflow CI --branch main --limit 1. - Compare with what's live:
npm view vale-mcp version.
2. Choose the version (semver)
Read ## Unreleased in CHANGELOG.md and git log <last tag or release>..HEAD.
- Breaking change to tool names/inputs/outputs or env vars → major (while 0.x, bump minor instead).
- New tool, input or feature → minor.
- Fixes/dependency-only → patch. If unsure, ask the user. State the chosen version and why.
3. Release PR
git checkout -b release/X.Y.Znpm version X.Y.Z --no-git-tag-version(editspackage.jsonand the lockfile; this also works when the current version is an rc of X.Y.Z).CHANGELOG.md: rename## Unreleasedto## Version X.Y.Z - <short title> (YYYY-MM-DD), and put a fresh empty## Unreleasedabove it if there's unreleased work to come.npm test(it rebuildsbuild/;build/is committed and CI fails if it differs from a fresh build). Commit anything it changed.- Add a short entry to
.claude/history.mdif anything non-obvious happened, and tick/move items inROADMAP.md. - Commit, push,
gh pr create --base main, wait for CI (gh pr checks). - Stop and ask the user to merge the PR (they merge PRs themselves).
4. Create the release (after the PR is merged)
git checkout main && git pull; confirmpackage.jsonversion is X.Y.Z andgh run list --workflow CI --branch main --limit 1is green.- Write the release notes from the CHANGELOG section to a temp file in the
scratchpad, then:
gh release create vX.Y.Z --target main --title "vX.Y.Z" --notes-file <file>(the publish workflow refuses to run if the tag doesn't matchpackage.json). - Watch it:
gh run list --workflow "Publish to npm" --limit 1, thengh run watch <id>.
5. Verify
npm view vale-mcp versionshows X.Y.Z. The registry can lag a few minutes after the workflow goes green (log says "may take a few minutes"); pollnpm view vale-mcp@X.Y.Z versionevery ~15s before treating it as a failure. Provenance:npm view vale-mcp@X.Y.Z dist.attestations.provenance.predicateType.- Smoke test from outside the repo:
cd $(mktemp -d) && npx -y vale-mcp@X.Y.Z --versionprints X.Y.Z. - If a prerelease of this version was published,
nextstill points at it: ask the user to runnpm dist-tag add vale-mcp@X.Y.Z next(dist-tag changes need their npm login; the OIDC publish doesn't cover them). - Report the release URL and npm version to the user.
If something fails
- Publish workflow fails on version mismatch: the tag and
package.jsondiffer. Delete the release and tag (gh release delete vX.Y.Z --cleanup-tag, with the user's OK), fix via a new PR, and release again. EOTP,ENEEDAUTHor404on publish: trusted publishing isn't matching. Check the npm package Settings → Trusted Publisher (owner, repo name andpublish.ymlmust match exactly, case included), that the job haspermissions: id-token: write, and thatnpm --versionin the log is= 11.5.1. If the workflow file had to change, the old tag still runs the old workflow: cut a new patch release (or, only if nothing was published and the user agrees, delete and recreate the tag).
- "Cannot publish over existing version": the version already exists on npm; bump again. npm versions can't be reused.