kit-release
Prepare and ship a Kit release (vX.Y.Z) to the GitHub Release, npm and crates.io. Use when asked to cut, bump, tag or check a Kit release, or to read a failed Release npm run.
- License 许可
- MIT
- 所属仓库
- Zwin-ux/kit
- 最近更新
- 2026-11-02
- Stars
- ★ 0
- Forks
- 2
01 前言 Front Matter
- name
- kit-release
- description
- Prepare and ship a Kit release (vX.Y.Z) to the GitHub Release, npm and crates.io. Use when asked to cut, bump, tag or check a Kit release, or to read a failed Release npm run.
03 SKILL.md 正文
Kit release
The full procedure is docs/dev/RELEASING.md. This is the short path
and the rules that keep it safe. Its "Ship day" list was written for 2.0.0: for any later release, skip
its steps 3 and 4 (the Zwin-ux/kits index repo already exists; rebuild the index only when a kit in
crates/kit-cli/kits/ changed) and read every 2.0.0 there as the new version.
Rules
- The owner (Mazen) pushes the tag. A tag push publishes to npm, crates.io and the GitHub Release,
and npm and crates.io versions can never be reused. Prepare everything, then ask. Never tag, never run
Release npm with
publishchecked, nevernpm publishorcargo publishby hand. - Never print or echo
NPM_TOKENorCARGO_REGISTRY_TOKEN.gh secret list -R Zwin-ux/kitshows the names and dates only, and that is all you need. mainmust be green on Ubuntu, macOS and Windows (rust.yml) at the commit that gets the tag.
The bump PR
- Branch from
main:git switch -c release/vX.Y.Z origin/main. node scripts/version.mjs --set X.Y.Z, thencargo update -w, thennode scripts/version.mjs --check.- In
CHANGELOG.md, rename## Unreleasedto## X.Y.Z — <title>. The release fails without it. node scripts/release-notes.mjs X.Y.Zand read the notes it prints.- Update the date and release line in
docs/dev/CURRENT.md. - Push, open the PR, wait for
rust.ymlon all three OSes and thecrates.io packagejob.
Optional dry run of the whole pipeline (publishes nothing): Actions → Release npm → Run workflow on
the PR branch with publish unchecked.
After the owner merges and tags
Watch release-npm.yml to the end: build → verify → github-release → publish → npm-check,
crates-io, install-check. Then confirm from outside:
npm view @mzwin/kit dist-tags # latest = X.Y.Z (a prerelease moves only its own tag)
curl -s -A kit-check https://crates.io/api/v1/crates/kitctl | python -I -c "import json,sys;print(json.load(sys.stdin)['crate']['max_version'])"
gh release view vX.Y.Z -R Zwin-ux/kit
A rerun of a failed job skips what is already published (gh run rerun <id> -R Zwin-ux/kit --failed).
Report which of the three channels you saw with your own command, not from the run summary alone.
04 同仓库更多 Skills
concepts
暂无简介
write-tests
Add focused tests for important project behavior.
workspace-setup
Set up monorepo and multi-package workspaces for agents and humans.
ship-checklist
Run a practical pre-ship checklist for an app release.
project-setup
Set up a clean project baseline for agents and humans.
pr-ready
Prepare a clear pull request summary, test plan, and risk notes.