release
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseRelease context-mode v2 (ADR-0013). Starting the skill is the approval for this release; the preview in step 6 is for information, not a second approval. Stop and report at the first step that fails; do not retry a failed step with a different method.
- Check the start state. Run and
git branch --show-current. The branch must begit status --porcelainand the tree must be clean; if not, stop and report what is dirty. Runv2andgh auth status.git pull --ff-only - Run the E2E cases: . If a row is
node e2e/cases/run.mjs, stop and report the failing case ids.FAIL - Run the v1 KEEP-PASS unit tests (GS4). installs the dev toolchain only (ADR-0013 "Trust boundary"); users never run npm. Then run
npm ci. If one of the 131 tracked tests fails, stop and show its name.npx vitest run - Run the live test: (Sonnet 5, effort low, ADR-0017) and show its table. If a row is
node e2e/live/run.mjs --all, stop. Then update the live-skip streak inFAIL(e2e/live/skip-streak.json): if the table has one or more{ "streak": <n> }rows, add 1 toSKIPPED; if it has none, reset it to 0. If the file changed, commit it onstreakand push. Ifv2is nowstreak(3) or more, refuse to continue: report which cases were skipped and the note on each row.LIVE_SKIP_LIMIT - v1 migration checkpoint (GS10). The cases ran in step 4 (their
e2e/live/cases/v1-migration-*.jsonpaths includecovers, sov1-transitionselects them). Do not run them again; confirm each one is--allin the step 4 table, and stop if one is not.PASS - Preview. Run . Show the owner the next version and the release notes. If it says there is nothing to release, stop.
node scripts/release/plan.mjs --dry-run - Start the release: .
gh workflow run release.yml --ref v2 -f sha=$(git rev-parse HEAD) - Follow the new run with and report each job status as it changes. At the end, report in one short table: version, release commit on
gh run watch, GitHub Release URL, live test (passed, or skipped), and the smoke-install result per agent.release
skip-live/release skip-livenode scripts/release/plan.mjs --dry-run --skip-liveThis skill never runs these one-time steps: switching the marketplace to , adding workflows to , and . Ask the owner about each one separately.
ref: "release"mainnpm deprecate发布 context-mode v2(ADR-0013)。启动该 skill 即表示批准本次发布;第 6 步中的预览仅供参考,并不构成第二次批准。遇到第一个失败步骤时停止并报告;不要改用其他方法重试失败步骤。
- 检查初始状态。运行 和
git branch --show-current。分支必须为git status --porcelain,且工作树必须干净;否则停止并报告脏文件或改动。运行v2和gh auth status。git pull --ff-only - 运行 E2E 用例:。如果某行显示
node e2e/cases/run.mjs,停止并报告失败的用例 ID。FAIL - 运行 v1 KEEP-PASS 单元测试(GS4)。仅安装开发工具链(ADR-0013 "Trust boundary");用户绝不运行 npm。然后运行
npm ci。如果 131 个受跟踪测试中有任何一个失败,停止并显示其名称。npx vitest run - 运行 live 测试:(Sonnet 5,effort low,ADR-0017),并显示其表格。如果某行显示
node e2e/live/run.mjs --all,则停止。然后更新FAIL中的 live-skip 连续计数(e2e/live/skip-streak.json):如果表中有一个或多个{ "streak": <n> }行,则将SKIPPED加 1;如果没有任何streak行,则将其重置为 0。如果文件发生变化,请在SKIPPED上提交并推送。如果v2现在达到或超过streak(3),拒绝继续:报告被跳过的用例以及每一行的备注。LIVE_SKIP_LIMIT - v1 迁移检查点(GS10)。用例 已在第 4 步运行(其
e2e/live/cases/v1-migration-*.json路径包含covers,因此v1-transition会选中它们)。不要再次运行;确认第 4 步表格中每个用例均为--all,如果有任何一个不是,则停止。PASS - 预览。运行 。向负责人显示下一版本和发布说明。如果提示没有可发布的内容,则停止。
node scripts/release/plan.mjs --dry-run - 启动发布:。
gh workflow run release.yml --ref v2 -f sha=$(git rev-parse HEAD) - 使用 跟踪新运行,并在状态变化时报告每个 job 的状态。最后用一个简短表格报告:版本、
gh run watch上的发布提交、GitHub Release URL、live 测试(通过或跳过),以及每个 Agent 的 smoke-install 结果。release
skip-live/release skip-livenode scripts/release/plan.mjs --dry-run --skip-live此 skill 绝不执行以下一次性步骤:将 marketplace 切换到 、向 添加 workflows,以及执行 。每一项都需单独询问负责人。
ref: "release"mainnpm deprecate