release
Installation
SKILL.md
Release Skill
Use this skill when preparing or executing a Pake release. Shared facts live in AGENTS.md and are not repeated here: the four version files and tag format (Version Management), CI jobs, Trusted Publishing, surface separation, and the contributors bot (Release Workflow), and issue closeout (Issue Closeout After a Fix).
Pre-Release
- Before changing files or running any formatter/build, freeze the full baseline with
git status --short --branch -uall,git diff, andgit diff --cached. If the checkout contains unrelated or ambiguously owned changes, prepare the release in an isolated worktree. - Confirm the new version (
jq .version package.json; previous tag per AGENTS.md Version Management) and thatnpm view pake-cli@X.Y.Z versionreturns 404. - Update all four version files.
-
pnpm run format, thenpnpm test. Ifpnpm testfails at the suite'spnpm install pake-cli@latest(run in/tmp) against a mirror, re-run once; two consecutive failures are real. -
pnpm run cli:build, thenpnpm run release:check(version sync, format, vitest, package contents, npm dry-run). - Re-read
git status --short --branch -uall,git diff, andgit diff --cached. Restore only build-churn paths that were clean in the baseline and provably generated by this run; otherwise repeat in an isolated worktree. - Commit
chore: bump version to VX.Y.Zwith the rebuiltdist/cli.jsstaged viagit add -f dist/cli.js.