Skip to content
Back to skills

Release

ASecurity

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 says "cut a release", "release", "publish a new version" or "ship 0.x".

  • 26 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added November 19, 2026
documentationrustgotestinggit

Works with

  • mcp

Security analysis

A100/100

Scanned November 19, 2026

npx -y skills add ChrisChinchilla/Vale-MCP --skill release --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Release?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Release
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/chrischinchilla-release/badge)](https://www.skillsdirectory.com/skills/chrischinchilla-release)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: release
description: 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 says "cut a release", "release", "publish a new version" or "ship 0.x".
---

# Release 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

1. `git checkout -b release/X.Y.Z`
2. `npm version X.Y.Z --no-git-tag-version` (edits `package.json` and the lockfile;
   this also works when the current version is an rc of X.Y.Z).
3. `CHANGELOG.md`: rename `## Unreleased` to `## Version X.Y.Z - <short title> (YYYY-MM-DD)`,
   and put a fresh empty `## Unreleased` above it if there's unreleased work to come.
4. `npm test` (it rebuilds `build/`; `build/` is committed and CI fails if it
   differs from a fresh build). Commit anything it changed.
5. Add a short entry to `.claude/history.md` if anything non-obvious happened,
   and tick/move items in `ROADMAP.md`.
6. Commit, push, `gh pr create --base main`, wait for CI (`gh pr checks`).
7. **Stop and ask the user to merge the PR** (they merge PRs themselves).

## 4. Create the release (after the PR is merged)

1. `git checkout main && git pull`; confirm `package.json` version is X.Y.Z and
   `gh run list --workflow CI --branch main --limit 1` is green.
2. 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 match `package.json`).
3. Watch it: `gh run list --workflow "Publish to npm" --limit 1`, then
   `gh run watch <id>`.

## 5. Verify

- `npm view vale-mcp version` shows X.Y.Z. The registry can lag a few minutes
  after the workflow goes green (log says "may take a few minutes"); poll
  `npm view vale-mcp@X.Y.Z version` every ~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 --version`
  prints X.Y.Z.
- If a prerelease of this version was published, `next` still points at it:
  ask the user to run `npm 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.json`
  differ. 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`, `ENEEDAUTH` or `404` on publish: trusted publishing isn't matching.
  Check the npm package Settings → Trusted Publisher (owner, repo name and
  `publish.yml` must match exactly, case included), that the job has
  `permissions: id-token: write`, and that `npm --version` in 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.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in documentation →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.