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 從公開儲存庫中收錄這些內容。

檢舉或申請下架