Release

cyrusagents/cyrus/skills/release

作者 cyrusagents9cb20212dfb0caec7fc44a4688d41829589087bc无许可证850 个星标收录于 2026年10月9日更新于 2026年10月9日仓库今天更新

Prepare, verify, publish, and finish a coordinated Cyrus CLI release. Use when a user asks to release Cyrus, publish cyrus-ai, run a CLI release, or perform the /release workflow.

仅含说明DevOps & Cloud
AI 生成的概览

指导 Cyrus CLI 的协同发布:准备、验证、通过 GitHub Actions 发布并核验已发布版本。

功能
该技能引导代理完成 Cyrus CLI 的完整发布流程:拉取 main、在各清单中统一版本号、整理变更日志条目、运行校验与所需检查,并创建和合并发布 PR。随后以 dry-run 模式触发 release-cli GitHub Actions 工作流,仅在用户明确要求时才以 dry_run=false 执行正式发布,并持续监控至 npm 发布、打标签和创建 GitHub Release。最后独立核验 npm 上的版本、运行已发布 CLI 的 --version,并将相关 Linear 议题移至 ReleasedMonitoring。
适用场景
当用户要求发布 Cyrus、发布 cyrus-ai、执行 CLI 发布或运行 /release 工作流时使用。它面向 Cyrus CLI 的协同发布,而非修改发布工作流、脚本、安装器或发布文档。
运行要求
需要 Cyrus 仓库(含 apps/cli/RELEASING.md 与 scripts/release-packages.mjs)、Node 与 pnpm、对 origin/main 的 git 访问、可触发 .github/workflows/release-cli.yml 的 GitHub Actions、通过 GitHub Actions OIDC 的 npm 可信发布(不使用 npm token),以及 Linear 集成。该技能自身不附带脚本,仅为说明文档。

Release Cyrus

Run Cyrus releases through the trusted-publishing workflow. Do not publish workspace packages manually.

Required reference

Read apps/cli/RELEASING.md completely before taking release actions. Treat it as the canonical operator guide and scripts/release-packages.mjs as the canonical package list and dependency order.

Editing release workflows, scripts, installers, or release documentation does not invoke this release procedure. Validate those changes with targeted checks and the F1 applicability policy in skills/f1-test-drive/SKILL.md.

Workflow

  1. Fetch origin/main, start from current main, and preserve unrelated local changes.
  2. Prepare the release on a branch:
    • Move both changelogs' Unreleased entries into the new version.
    • Set the same version in every manifest printed by node scripts/release-packages.mjs list.
    • Run pnpm install and commit any lockfile change.
    • Assess the entire payload since the previous release using the canonical F1 applicability policy, including functional changes merged before the version-bump PR. For F1-covered behavior changes, run relevant F1 scenarios and save evidence with the required -release-v<version>.md suffix. Otherwise record the payload assessment and targeted checks as non-F1 release verification per apps/cli/RELEASING.md; do not invent an F1 report.
    • List every released package@version in CHANGELOG.md.
  3. Run node scripts/release-packages.mjs validate <version>, then all checks required by apps/cli/RELEASING.md. Fix failures before continuing.
  4. Commit, push, open the release PR, and merge it to main before dispatching the workflow. Never publish unmerged source or a non-main ref.
  5. Dispatch .github/workflows/release-cli.yml from main in dry-run mode and monitor it through completion.
  6. Only when the user has explicitly requested the live release, dispatch the same exact version with dry_run=false. Monitor it through npm publication, git tagging, and GitHub Release creation.
  7. Independently verify the version on npm and run the published CLI's --version command.
  8. Use the Linear integration to move every issue referenced by the version's changelog section from MergedUnreleased to ReleasedMonitoring.

Safety

  • Never add an npm token. Publishing must use GitHub Actions OIDC.
  • Confirm every npm package trusts cyrusagents/cyrus and release-cli.yml before the first live workflow run.
  • A dry run does not authenticate to npm and does not prove registry writes.
  • Never rerun a partially published version blindly. npm versions are immutable; inspect which packages landed and recover deliberately.
  • Do not create or move a release tag until every package is published. The workflow owns tag and GitHub Release creation.

来源与署名

来源:cyrusagents/cyrus位于skills/release提交9cb2021

许可证: 无许可证

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架