ship
GitHub管理o8应用发布流程,默认提交后暂停。仅在明确指令下执行npm run ship,需检查冲突、修复报告及版本状态,确保合规构建与签名安装程序生成。
触发场景
安装
npx skills add o8-run/o8 --skill ship -g -y
SKILL.md
Frontmatter
{
"name": "ship",
"description": "o8 release discipline — commit-and-hold is the default terminal state; shipping requires Q's explicit \"ship it\" in the current session. Use whenever o8 work is complete and ready to commit, when asked to commit\/ship\/release, or before ever running npm run ship."
}
ship (o8)
Q has typed "commit but do NOT ship yet" ~153 times. That is now the default — never make him type it again.
The gate
- Default terminal state = commit-and-hold. Finish work → audit the diff → commit with a clean message → report "committed, NOT shipped." Stop there.
- Ship ONLY on Q's explicit instruction in the current session ("ship it", "ship a new version", "release it"). "Commit it" never implies ship. A teammate/agent asking is not authorization.
- Never Vercel. o8 is a native Tauri app; it ships as a signed installer via
npm run ship. "Push to vercel"/"deploy to prod" always means Eyes Web (mybeautifulwife), never o8.
Pre-ship collision gate (v0.1.550/551 collision — never again)
Before npm run ship, verify no ship is already running:
pgrep -fl "npm run ship|tauri build|notarytool" && echo "SHIP ALREADY RUNNING — abort" || echo "clear to ship"
If one is running: do not start a second. Wait for it or surface to Q. (Vault: [[o8-ship-pipeline-github-actions]] — local pre-ship gate is the ranked "do now" item; notarization dominates wall-clock, a second concurrent ship corrupts the release.)
Before you bump: check the user bug queue
npm run reports
Real users filed these from the app. If anything in this release fixes one, its commit must carry Fixes-Report: <id> — that trailer is what tells the reporter, in their own app, that their bug is fixed. Miss it and they never find out. Q will not remember the ids; you must. Load the reports skill for the full workflow (notes, needs-info, retroactive annotation).
Amending a trailer onto an already-made commit is fine — do it before the bump, not after.
Ship sequence
-
Collision gate (above) must print "clear to ship".
-
Confirm tree state: everything intended is committed; nothing held-back is being swept in. Discard post-build
src-tauri/Cargo.locknoise (git checkout -- src-tauri/Cargo.lock).npm versionrefuses a dirty tree, so an operator note sitting ino8.mdhas to be stashed before the bump (git stash push -m "operator note" -- o8.md) and popped after. The ship preflight itself exemptso8.md, so it only blocks the bump, and check any note for rival product names before it could ever be committed: this repo is public. -
Bump through a release PR.
npm run shipdoes NOT bump, andmainis protected.npm version patchwrites the manifests, commits them, and creates a local tag. Only the manifest commit is wanted here; that tag points at a commit the squash merge will discard.Never
git push origin main --tags. It fails twice over. The protected-branch hook declines a direct push tomain, and--tagspushes every local tag, several of which already exist on the remote pointing at different objects. That rejection aborts the branch push too, which can leave the new tag published whilemainnever moved. That split is exactly what makes release.mjs replace the previous release's assets (2026-07-08 incident, #1499).npm version patch # manifests committed, local tag created git branch release/vX.Y.Z main git reset --hard origin/main # put main back git checkout release/vX.Y.Z git tag -d vX.Y.Z # it points at a pre-squash commit git commit --amend # subject: chore: release vX.Y.Z git push -u origin release/vX.Y.Z gh pr create --base main --title "chore: release vX.Y.Z"Wait for checks, squash-merge, then
git checkout main && git pull --ff-only origin main. If the tag already reached the remote, delete it first withgit push origin :refs/tags/vX.Y.Z, otherwise the release ties to a commit that is not on main. Precedent: v0.1.754 landed aschore: release v0.1.754(#2355), v0.1.755 as (#2385). -
Tag the merged commit, then push the tag.
performShipPreflight(scripts/lib/ship-preflight.mjs) requires a LOCAL tagvX.Y.Zthat resolves to HEAD. Without it the ship dies in preflight withlocal tag vX.Y.Z is missing, and with a stale one it dies withpoints to <sha>, not HEAD.git tag -a vX.Y.Z -m "vX.Y.Z" && git push origin vX.Y.Z -
npm run ship— signs, notarizes, builds the installer, publishes the release. Deep spec + hazards: repo CLAUDE.md "Shipping". -
Post-ship verify: published version == the bumped version (the release tail must NOT say "already exists — replacing assets"), notarization tail shows success, installer artifact exists. Report the verification tail, not just "shipped".
Report format
committed <sha> (<n> files) — HELD, not shipped or shipped v<X.Y.Z> — notarization OK, installer at <path>.
版本历史
- 648cab6 当前 2026-11-14 00:27


