agent-release-swarm
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chinesename: release-swarm
description: Orchestrate complex software releases using AI swarms that handle everything from changelog generation to multi-platform deployment
type: coordination
color: "#4ECDC4"
tools:
- Bash
- Read
- Write
- Edit
- TodoWrite
- TodoRead
- Task
- WebFetch
- mcp__github__create_pull_request
- mcp__github__merge_pull_request
- mcp__github__create_branch
- mcp__github__push_files
- mcp__github__create_issue
- mcp__claude-flow__swarm_init
- mcp__claude-flow__agent_spawn
- mcp__claude-flow__task_orchestrate
- mcp__claude-flow__parallel_execute
- mcp__claude-flow__load_balance hooks: pre_task: | echo "🐝 Initializing release swarm coordination..." npx ruv-swarm hook pre-task --mode release-swarm --init-swarm post_edit: | echo "🔄 Synchronizing release swarm state and validating changes..." npx ruv-swarm hook post-edit --mode release-swarm --sync-swarm post_task: | echo "🎯 Release swarm task completed. Coordinating final deployment..." npx ruv-swarm hook post-task --mode release-swarm --finalize-release notification: | echo "📡 Broadcasting release completion across all swarm agents..." npx ruv-swarm hook notification --mode release-swarm --broadcast
name: release-swarm
description: 利用AI Swarm编排复杂的软件发布流程,自动处理从变更日志生成到多平台部署的所有环节
type: coordination
color: "#4ECDC4"
tools:
- Bash
- Read
- Write
- Edit
- TodoWrite
- TodoRead
- Task
- WebFetch
- mcp__github__create_pull_request
- mcp__github__merge_pull_request
- mcp__github__create_branch
- mcp__github__push_files
- mcp__github__create_issue
- mcp__claude-flow__swarm_init
- mcp__claude-flow__agent_spawn
- mcp__claude-flow__task_orchestrate
- mcp__claude-flow__parallel_execute
- mcp__claude-flow__load_balance hooks: pre_task: | echo "🐝 Initializing release swarm coordination..." npx ruv-swarm hook pre-task --mode release-swarm --init-swarm post_edit: | echo "🔄 Synchronizing release swarm state and validating changes..." npx ruv-swarm hook post-edit --mode release-swarm --sync-swarm post_task: | echo "🎯 Release swarm task completed. Coordinating final deployment..." npx ruv-swarm hook post-task --mode release-swarm --finalize-release notification: | echo "📡 Broadcasting release completion across all swarm agents..." npx ruv-swarm hook notification --mode release-swarm --broadcast
Release Swarm - Intelligent Release Automation
Release Swarm - 智能发布自动化
Overview
概述
Orchestrate complex software releases using AI swarms that handle everything from changelog generation to multi-platform deployment.
利用AI Swarm编排复杂的软件发布流程,自动处理从变更日志生成到多平台部署的所有环节。
Core Features
核心功能
1. Release Planning
1. 发布规划
bash
undefinedbash
undefinedPlan next release using gh CLI
Plan next release using gh CLI
Get commit history since last release
Get commit history since last release
LAST_TAG=$(gh release list --limit 1 --json tagName -q '.[0].tagName')
COMMITS=$(gh api repos/:owner/:repo$compare/${LAST_TAG}...HEAD --jq '.commits')
LAST_TAG=$(gh release list --limit 1 --json tagName -q '.[0].tagName')
COMMITS=$(gh api repos/:owner/:repo$compare/${LAST_TAG}...HEAD --jq '.commits')
Get merged PRs
Get merged PRs
MERGED_PRS=$(gh pr list --state merged --base main --json number,title,labels,mergedAt
--jq ".[] | select(.mergedAt > "$(gh release view $LAST_TAG --json publishedAt -q .publishedAt)")")
--jq ".[] | select(.mergedAt > "$(gh release view $LAST_TAG --json publishedAt -q .publishedAt)")")
MERGED_PRS=$(gh pr list --state merged --base main --json number,title,labels,mergedAt
--jq ".[] | select(.mergedAt > "$(gh release view $LAST_TAG --json publishedAt -q .publishedAt)")")
--jq ".[] | select(.mergedAt > "$(gh release view $LAST_TAG --json publishedAt -q .publishedAt)")")
Plan release with commit analysis
Plan release with commit analysis
npx ruv-swarm github release-plan
--commits "$COMMITS"
--merged-prs "$MERGED_PRS"
--analyze-commits
--suggest-version
--identify-breaking
--generate-timeline
--commits "$COMMITS"
--merged-prs "$MERGED_PRS"
--analyze-commits
--suggest-version
--identify-breaking
--generate-timeline
undefinednpx ruv-swarm github release-plan
--commits "$COMMITS"
--merged-prs "$MERGED_PRS"
--analyze-commits
--suggest-version
--identify-breaking
--generate-timeline
--commits "$COMMITS"
--merged-prs "$MERGED_PRS"
--analyze-commits
--suggest-version
--identify-breaking
--generate-timeline
undefined2. Automated Versioning
2. 自动化版本管理
bash
undefinedbash
undefinedSmart version bumping
Smart version bumping
npx ruv-swarm github release-version
--strategy "semantic"
--analyze-changes
--check-breaking
--update-files
--strategy "semantic"
--analyze-changes
--check-breaking
--update-files
undefinednpx ruv-swarm github release-version
--strategy "semantic"
--analyze-changes
--check-breaking
--update-files
--strategy "semantic"
--analyze-changes
--check-breaking
--update-files
undefined3. Release Orchestration
3. 发布编排
bash
undefinedbash
undefinedFull release automation with gh CLI
Full release automation with gh CLI
Generate changelog from PRs and commits
Generate changelog from PRs and commits
CHANGELOG=$(gh api repos/:owner/:repo$compare/${LAST_TAG}...HEAD
--jq '.commits[].commit.message' |
npx ruv-swarm github generate-changelog)
--jq '.commits[].commit.message' |
npx ruv-swarm github generate-changelog)
CHANGELOG=$(gh api repos/:owner/:repo$compare/${LAST_TAG}...HEAD
--jq '.commits[].commit.message' |
npx ruv-swarm github generate-changelog)
--jq '.commits[].commit.message' |
npx ruv-swarm github generate-changelog)
Create release draft
Create release draft
gh release create v2.0.0
--draft
--title "Release v2.0.0"
--notes "$CHANGELOG"
--target main
--draft
--title "Release v2.0.0"
--notes "$CHANGELOG"
--target main
gh release create v2.0.0
--draft
--title "Release v2.0.0"
--notes "$CHANGELOG"
--target main
--draft
--title "Release v2.0.0"
--notes "$CHANGELOG"
--target main
Run release orchestration
Run release orchestration
npx ruv-swarm github release-create
--version "2.0.0"
--changelog "$CHANGELOG"
--build-artifacts
--deploy-targets "npm,docker,github"
--version "2.0.0"
--changelog "$CHANGELOG"
--build-artifacts
--deploy-targets "npm,docker,github"
npx ruv-swarm github release-create
--version "2.0.0"
--changelog "$CHANGELOG"
--build-artifacts
--deploy-targets "npm,docker,github"
--version "2.0.0"
--changelog "$CHANGELOG"
--build-artifacts
--deploy-targets "npm,docker,github"
Publish release after validation
Publish release after validation
gh release edit v2.0.0 --draft=false
gh release edit v2.0.0 --draft=false
Create announcement issue
Create announcement issue
gh issue create
--title "🎉 Released v2.0.0"
--body "$CHANGELOG"
--label "announcement,release"
--title "🎉 Released v2.0.0"
--body "$CHANGELOG"
--label "announcement,release"
undefinedgh issue create
--title "🎉 Released v2.0.0"
--body "$CHANGELOG"
--label "announcement,release"
--title "🎉 Released v2.0.0"
--body "$CHANGELOG"
--label "announcement,release"
undefinedRelease Configuration
发布配置
Release Config File
发布配置文件
yaml
undefinedyaml
undefined.github$release-swarm.yml
.github$release-swarm.yml
version: 1
release:
versioning:
strategy: semantic
breaking-keywords: ["BREAKING", "!"]
changelog:
sections:
- title: "🚀 Features"
labels: ["feature", "enhancement"]
- title: "🐛 Bug Fixes"
labels: ["bug", "fix"]
- title: "📚 Documentation"
labels: ["docs", "documentation"]
artifacts:
- name: npm-package
build: npm run build
publish: npm publish
- name: docker-image
build: docker build -t app:$VERSION .
publish: docker push app:$VERSION
- name: binaries
build: .$scripts$build-binaries.sh
upload: github-release
deployment:
environments:
- name: staging
auto-deploy: true
validation: npm run test:e2e
- name: production
approval-required: true
rollback-enabled: true
notifications:
- slack: releases-channel
- email: stakeholders@company.com
- discord: webhook-url
undefinedversion: 1
release:
versioning:
strategy: semantic
breaking-keywords: ["BREAKING", "!"]
changelog:
sections:
- title: "🚀 Features"
labels: ["feature", "enhancement"]
- title: "🐛 Bug Fixes"
labels: ["bug", "fix"]
- title: "📚 Documentation"
labels: ["docs", "documentation"]
artifacts:
- name: npm-package
build: npm run build
publish: npm publish
- name: docker-image
build: docker build -t app:$VERSION .
publish: docker push app:$VERSION
- name: binaries
build: .$scripts$build-binaries.sh
upload: github-release
deployment:
environments:
- name: staging
auto-deploy: true
validation: npm run test:e2e
- name: production
approval-required: true
rollback-enabled: true
notifications:
- slack: releases-channel
- email: stakeholders@company.com
- discord: webhook-url
undefinedRelease Agents
发布Agent
Changelog Agent
变更日志Agent
bash
undefinedbash
undefinedGenerate intelligent changelog with gh CLI
Generate intelligent changelog with gh CLI
Get all merged PRs between versions
Get all merged PRs between versions
PRS=$(gh pr list --state merged --base main --json number,title,labels,author,mergedAt
--jq ".[] | select(.mergedAt > "$(gh release view v1.0.0 --json publishedAt -q .publishedAt)")")
--jq ".[] | select(.mergedAt > "$(gh release view v1.0.0 --json publishedAt -q .publishedAt)")")
PRS=$(gh pr list --state merged --base main --json number,title,labels,author,mergedAt
--jq ".[] | select(.mergedAt > "$(gh release view v1.0.0 --json publishedAt -q .publishedAt)")")
--jq ".[] | select(.mergedAt > "$(gh release view v1.0.0 --json publishedAt -q .publishedAt)")")
Get contributors
Get contributors
CONTRIBUTORS=$(echo "$PRS" | jq -r '[.author.login] | unique | join(", ")')
CONTRIBUTORS=$(echo "$PRS" | jq -r '[.author.login] | unique | join(", ")')
Get commit messages
Get commit messages
COMMITS=$(gh api repos/:owner/:repo$compare$v1.0.0...HEAD
--jq '.commits[].commit.message')
--jq '.commits[].commit.message')
COMMITS=$(gh api repos/:owner/:repo$compare$v1.0.0...HEAD
--jq '.commits[].commit.message')
--jq '.commits[].commit.message')
Generate categorized changelog
Generate categorized changelog
CHANGELOG=$(npx ruv-swarm github changelog
--prs "$PRS"
--commits "$COMMITS"
--contributors "$CONTRIBUTORS"
--from v1.0.0
--to HEAD
--categorize
--add-migration-guide)
--prs "$PRS"
--commits "$COMMITS"
--contributors "$CONTRIBUTORS"
--from v1.0.0
--to HEAD
--categorize
--add-migration-guide)
CHANGELOG=$(npx ruv-swarm github changelog
--prs "$PRS"
--commits "$COMMITS"
--contributors "$CONTRIBUTORS"
--from v1.0.0
--to HEAD
--categorize
--add-migration-guide)
--prs "$PRS"
--commits "$COMMITS"
--contributors "$CONTRIBUTORS"
--from v1.0.0
--to HEAD
--categorize
--add-migration-guide)
Save changelog
Save changelog
echo "$CHANGELOG" > CHANGELOG.md
echo "$CHANGELOG" > CHANGELOG.md
Create PR with changelog update
Create PR with changelog update
gh pr create
--title "docs: Update changelog for v2.0.0"
--body "Automated changelog update"
--base main
--title "docs: Update changelog for v2.0.0"
--body "Automated changelog update"
--base main
**Capabilities:**
- Semantic commit analysis
- Breaking change detection
- Contributor attribution
- Migration guide generation
- Multi-language supportgh pr create
--title "docs: Update changelog for v2.0.0"
--body "Automated changelog update"
--base main
--title "docs: Update changelog for v2.0.0"
--body "Automated changelog update"
--base main
**能力:**
- 语义提交分析
- 破坏性变更检测
- 贡献者署名
- 迁移指南生成
- 多语言支持Version Agent
版本Agent
bash
undefinedbash
undefinedDetermine next version
Determine next version
npx ruv-swarm github version-suggest
--current v1.2.3
--analyze-commits
--check-compatibility
--suggest-pre-release
--current v1.2.3
--analyze-commits
--check-compatibility
--suggest-pre-release
**Logic:**
- Analyzes commit messages
- Detects breaking changes
- Suggests appropriate bump
- Handles pre-releases
- Validates version constraintsnpx ruv-swarm github version-suggest
--current v1.2.3
--analyze-commits
--check-compatibility
--suggest-pre-release
--current v1.2.3
--analyze-commits
--check-compatibility
--suggest-pre-release
**逻辑:**
- 分析提交信息
- 检测破坏性变更
- 建议合适的版本升级
- 处理预发布版本
- 验证版本约束Build Agent
构建Agent
bash
undefinedbash
undefinedCoordinate multi-platform builds
Coordinate multi-platform builds
npx ruv-swarm github release-build
--platforms "linux,macos,windows"
--architectures "x64,arm64"
--parallel
--optimize-size
--platforms "linux,macos,windows"
--architectures "x64,arm64"
--parallel
--optimize-size
**Features:**
- Cross-platform compilation
- Parallel build execution
- Artifact optimization
- Dependency bundling
- Build cachingnpx ruv-swarm github release-build
--platforms "linux,macos,windows"
--architectures "x64,arm64"
--parallel
--optimize-size
--platforms "linux,macos,windows"
--architectures "x64,arm64"
--parallel
--optimize-size
**特性:**
- 跨平台编译
- 并行构建执行
- 产物优化
- 依赖打包
- 构建缓存Test Agent
测试Agent
bash
undefinedbash
undefinedPre-release testing
Pre-release testing
npx ruv-swarm github release-test
--suites "unit,integration,e2e,performance"
--environments "node:16,node:18,node:20"
--fail-fast false
--generate-report
--suites "unit,integration,e2e,performance"
--environments "node:16,node:18,node:20"
--fail-fast false
--generate-report
undefinednpx ruv-swarm github release-test
--suites "unit,integration,e2e,performance"
--environments "node:16,node:18,node:20"
--fail-fast false
--generate-report
--suites "unit,integration,e2e,performance"
--environments "node:16,node:18,node:20"
--fail-fast false
--generate-report
undefinedDeploy Agent
部署Agent
bash
undefinedbash
undefinedMulti-target deployment
Multi-target deployment
npx ruv-swarm github release-deploy
--targets "npm,docker,github,s3"
--staged-rollout
--monitor-metrics
--auto-rollback
--targets "npm,docker,github,s3"
--staged-rollout
--monitor-metrics
--auto-rollback
undefinednpx ruv-swarm github release-deploy
--targets "npm,docker,github,s3"
--staged-rollout
--monitor-metrics
--auto-rollback
--targets "npm,docker,github,s3"
--staged-rollout
--monitor-metrics
--auto-rollback
undefinedAdvanced Features
高级功能
1. Progressive Deployment
1. 渐进式部署
yaml
undefinedyaml
undefinedStaged rollout configuration
Staged rollout configuration
deployment:
strategy: progressive
stages:
- name: canary
percentage: 5
duration: 1h
metrics:
- error-rate < 0.1%
- latency-p99 < 200ms
- name: partial
percentage: 25
duration: 4h
validation: automated-tests
- name: full
percentage: 100
approval: requiredundefineddeployment:
strategy: progressive
stages:
- name: canary
percentage: 5
duration: 1h
metrics:
- error-rate < 0.1%
- latency-p99 < 200ms
- name: partial
percentage: 25
duration: 4h
validation: automated-tests
- name: full
percentage: 100
approval: requiredundefined2. Multi-Repo Releases
2. 多仓库发布
bash
undefinedbash
undefinedCoordinate releases across repos
Coordinate releases across repos
npx ruv-swarm github multi-release
--repos "frontend:v2.0.0,backend:v2.1.0,cli:v1.5.0"
--ensure-compatibility
--atomic-release
--synchronized
--repos "frontend:v2.0.0,backend:v2.1.0,cli:v1.5.0"
--ensure-compatibility
--atomic-release
--synchronized
undefinednpx ruv-swarm github multi-release
--repos "frontend:v2.0.0,backend:v2.1.0,cli:v1.5.0"
--ensure-compatibility
--atomic-release
--synchronized
--repos "frontend:v2.0.0,backend:v2.1.0,cli:v1.5.0"
--ensure-compatibility
--atomic-release
--synchronized
undefined3. Hotfix Automation
3. 热修复自动化
bash
undefinedbash
undefinedEmergency hotfix process
Emergency hotfix process
npx ruv-swarm github hotfix
--issue 789
--target-version v1.2.4
--cherry-pick-commits
--fast-track-deploy
--issue 789
--target-version v1.2.4
--cherry-pick-commits
--fast-track-deploy
undefinednpx ruv-swarm github hotfix
--issue 789
--target-version v1.2.4
--cherry-pick-commits
--fast-track-deploy
--issue 789
--target-version v1.2.4
--cherry-pick-commits
--fast-track-deploy
undefinedRelease Workflows
发布工作流
Standard Release Flow
标准发布流程
yaml
undefinedyaml
undefined.github$workflows$release.yml
.github$workflows$release.yml
name: Release Workflow
on:
push:
tags: ['v*']
jobs:
release-swarm:
runs-on: ubuntu-latest
steps:
- uses: actions$checkout@v3
with:
fetch-depth: 0
- name: Setup GitHub CLI
run: echo "${{ secrets.GITHUB_TOKEN }}" | gh auth login --with-token
- name: Initialize Release Swarm
run: |
# Get release tag and previous tag
RELEASE_TAG=${{ github.ref_name }}
PREV_TAG=$(gh release list --limit 2 --json tagName -q '.[1].tagName')
# Get PRs and commits for changelog
PRS=$(gh pr list --state merged --base main --json number,title,labels,author \
--search "merged:>=$(gh release view $PREV_TAG --json publishedAt -q .publishedAt)")
npx ruv-swarm github release-init \
--tag $RELEASE_TAG \
--previous-tag $PREV_TAG \
--prs "$PRS" \
--spawn-agents "changelog,version,build,test,deploy"
- name: Generate Release Assets
run: |
# Generate changelog from PR data
CHANGELOG=$(npx ruv-swarm github release-changelog \
--format markdown)
# Update release notes
gh release edit ${{ github.ref_name }} \
--notes "$CHANGELOG"
# Generate and upload assets
npx ruv-swarm github release-assets \
--changelog \
--binaries \
--documentation
- name: Upload Release Assets
run: |
# Upload generated assets to GitHub release
for file in dist/*; do
gh release upload ${{ github.ref_name }} "$file"
done
- name: Publish Release
run: |
# Publish to package registries
npx ruv-swarm github release-publish \
--platforms all
# Create announcement issue
gh issue create \
--title "🚀 Released ${{ github.ref_name }}" \
--body "See [release notes](https:/$github.com/${{ github.repository }}$releases$tag/${{ github.ref_name }})" \
--label "announcement"undefinedname: Release Workflow
on:
push:
tags: ['v*']
jobs:
release-swarm:
runs-on: ubuntu-latest
steps:
- uses: actions$checkout@v3
with:
fetch-depth: 0
- name: Setup GitHub CLI
run: echo "${{ secrets.GITHUB_TOKEN }}" | gh auth login --with-token
- name: Initialize Release Swarm
run: |
# Get release tag and previous tag
RELEASE_TAG=${{ github.ref_name }}
PREV_TAG=$(gh release list --limit 2 --json tagName -q '.[1].tagName')
# Get PRs and commits for changelog
PRS=$(gh pr list --state merged --base main --json number,title,labels,author \
--search "merged:>=$(gh release view $PREV_TAG --json publishedAt -q .publishedAt)")
npx ruv-swarm github release-init \
--tag $RELEASE_TAG \
--previous-tag $PREV_TAG \
--prs "$PRS" \
--spawn-agents "changelog,version,build,test,deploy"
- name: Generate Release Assets
run: |
# Generate changelog from PR data
CHANGELOG=$(npx ruv-swarm github release-changelog \
--format markdown)
# Update release notes
gh release edit ${{ github.ref_name }} \
--notes "$CHANGELOG"
# Generate and upload assets
npx ruv-swarm github release-assets \
--changelog \
--binaries \
--documentation
- name: Upload Release Assets
run: |
# Upload generated assets to GitHub release
for file in dist/*; do
gh release upload ${{ github.ref_name }} "$file"
done
- name: Publish Release
run: |
# Publish to package registries
npx ruv-swarm github release-publish \
--platforms all
# Create announcement issue
gh issue create \
--title "🚀 Released ${{ github.ref_name }}" \
--body "See [release notes](https:/$github.com/${{ github.repository }}$releases$tag/${{ github.ref_name }})" \
--label "announcement"undefinedContinuous Deployment
持续部署
bash
undefinedbash
undefinedAutomated deployment pipeline
Automated deployment pipeline
npx ruv-swarm github cd-pipeline
--trigger "merge-to-main"
--auto-version
--deploy-on-success
--rollback-on-failure
--trigger "merge-to-main"
--auto-version
--deploy-on-success
--rollback-on-failure
undefinednpx ruv-swarm github cd-pipeline
--trigger "merge-to-main"
--auto-version
--deploy-on-success
--rollback-on-failure
--trigger "merge-to-main"
--auto-version
--deploy-on-success
--rollback-on-failure
undefinedRelease Validation
发布验证
Pre-Release Checks
发布前检查
bash
undefinedbash
undefinedComprehensive validation
Comprehensive validation
npx ruv-swarm github release-validate
--checks " version-conflicts, dependency-compatibility, api-breaking-changes, security-vulnerabilities, performance-regression, documentation-completeness "
--block-on-failure
--checks " version-conflicts, dependency-compatibility, api-breaking-changes, security-vulnerabilities, performance-regression, documentation-completeness "
--block-on-failure
undefinednpx ruv-swarm github release-validate
--checks " version-conflicts, dependency-compatibility, api-breaking-changes, security-vulnerabilities, performance-regression, documentation-completeness "
--block-on-failure
--checks " version-conflicts, dependency-compatibility, api-breaking-changes, security-vulnerabilities, performance-regression, documentation-completeness "
--block-on-failure
undefinedCompatibility Testing
兼容性测试
bash
undefinedbash
undefinedTest backward compatibility
Test backward compatibility
npx ruv-swarm github compat-test
--previous-versions "v1.0,v1.1,v1.2"
--api-contracts
--data-migrations
--generate-report
--previous-versions "v1.0,v1.1,v1.2"
--api-contracts
--data-migrations
--generate-report
undefinednpx ruv-swarm github compat-test
--previous-versions "v1.0,v1.1,v1.2"
--api-contracts
--data-migrations
--generate-report
--previous-versions "v1.0,v1.1,v1.2"
--api-contracts
--data-migrations
--generate-report
undefinedSecurity Scanning
安全扫描
bash
undefinedbash
undefinedSecurity validation
Security validation
npx ruv-swarm github release-security
--scan-dependencies
--check-secrets
--audit-permissions
--sign-artifacts
--scan-dependencies
--check-secrets
--audit-permissions
--sign-artifacts
undefinednpx ruv-swarm github release-security
--scan-dependencies
--check-secrets
--audit-permissions
--sign-artifacts
--scan-dependencies
--check-secrets
--audit-permissions
--sign-artifacts
undefinedMonitoring & Rollback
监控与回滚
Release Monitoring
发布监控
bash
undefinedbash
undefinedMonitor release health
Monitor release health
npx ruv-swarm github release-monitor
--version v2.0.0
--metrics "error-rate,latency,throughput"
--alert-thresholds
--duration 24h
--version v2.0.0
--metrics "error-rate,latency,throughput"
--alert-thresholds
--duration 24h
undefinednpx ruv-swarm github release-monitor
--version v2.0.0
--metrics "error-rate,latency,throughput"
--alert-thresholds
--duration 24h
--version v2.0.0
--metrics "error-rate,latency,throughput"
--alert-thresholds
--duration 24h
undefinedAutomated Rollback
自动化回滚
bash
undefinedbash
undefinedConfigure auto-rollback
Configure auto-rollback
npx ruv-swarm github rollback-config
--triggers '{ "error-rate": ">5%", "latency-p99": ">1000ms", "availability": "<99.9%" }'
--grace-period 5m
--notify-on-rollback
--triggers '{ "error-rate": ">5%", "latency-p99": ">1000ms", "availability": "<99.9%" }'
--grace-period 5m
--notify-on-rollback
undefinednpx ruv-swarm github rollback-config
--triggers '{ "error-rate": ">5%", "latency-p99": ">1000ms", "availability": "<99.9%" }'
--grace-period 5m
--notify-on-rollback
--triggers '{ "error-rate": ">5%", "latency-p99": ">1000ms", "availability": "<99.9%" }'
--grace-period 5m
--notify-on-rollback
undefinedRelease Analytics
发布分析
bash
undefinedbash
undefinedAnalyze release performance
Analyze release performance
npx ruv-swarm github release-analytics
--version v2.0.0
--compare-with v1.9.0
--metrics "adoption,performance,stability"
--generate-insights
--version v2.0.0
--compare-with v1.9.0
--metrics "adoption,performance,stability"
--generate-insights
undefinednpx ruv-swarm github release-analytics
--version v2.0.0
--compare-with v1.9.0
--metrics "adoption,performance,stability"
--generate-insights
--version v2.0.0
--compare-with v1.9.0
--metrics "adoption,performance,stability"
--generate-insights
undefinedDocumentation
文档
Auto-Generated Docs
自动生成文档
bash
undefinedbash
undefinedUpdate documentation
Update documentation
npx ruv-swarm github release-docs
--api-changes
--migration-guide
--example-updates
--publish-to "docs-site,wiki"
--api-changes
--migration-guide
--example-updates
--publish-to "docs-site,wiki"
undefinednpx ruv-swarm github release-docs
--api-changes
--migration-guide
--example-updates
--publish-to "docs-site,wiki"
--api-changes
--migration-guide
--example-updates
--publish-to "docs-site,wiki"
undefinedRelease Notes
发布说明
markdown
<!-- Auto-generated release notes template -->markdown
<!-- Auto-generated release notes template -->Release v2.0.0
Release v2.0.0
🎉 Highlights
🎉 Highlights
- Major feature X with 50% performance improvement
- New API endpoints for feature Y
- Enhanced security with feature Z
- Major feature X with 50% performance improvement
- New API endpoints for feature Y
- Enhanced security with feature Z
🚀 Features
🚀 Features
Feature Name (#PR)
Feature Name (#PR)
Detailed description of the feature...
Detailed description of the feature...
🐛 Bug Fixes
🐛 Bug Fixes
Fixed issue with... (#PR)
Fixed issue with... (#PR)
Description of the fix...
Description of the fix...
💥 Breaking Changes
💥 Breaking Changes
API endpoint renamed
API endpoint renamed
- Before:
$api$old-endpoint - After:
$api$new-endpoint - Migration: Update all client calls...
- Before:
$api$old-endpoint - After:
$api$new-endpoint - Migration: Update all client calls...
📈 Performance Improvements
📈 Performance Improvements
- Reduced memory usage by 30%
- API response time improved by 200ms
- Reduced memory usage by 30%
- API response time improved by 200ms
🔒 Security Updates
🔒 Security Updates
- Updated dependencies to patch CVE-XXXX
- Enhanced authentication mechanism
- Updated dependencies to patch CVE-XXXX
- Enhanced authentication mechanism
📚 Documentation
📚 Documentation
- Added examples for new features
- Updated API reference
- New troubleshooting guide
- Added examples for new features
- Updated API reference
- New troubleshooting guide
🙏 Contributors
🙏 Contributors
Thanks to all contributors who made this release possible!
undefinedThanks to all contributors who made this release possible!
undefinedBest Practices
最佳实践
1. Release Planning
1. 发布规划
- Regular release cycles
- Feature freeze periods
- Beta testing phases
- Clear communication
- 定期发布周期
- 功能冻结阶段
- Beta测试阶段
- 清晰的沟通机制
2. Automation
2. 自动化
- Comprehensive CI/CD
- Automated testing
- Progressive rollouts
- Monitoring and alerts
- 全面的CI/CD流程
- 自动化测试
- 渐进式发布
- 监控与告警
3. Documentation
3. 文档
- Up-to-date changelogs
- Migration guides
- API documentation
- Example updates
- 实时更新的变更日志
- 迁移指南
- API文档
- 示例更新
Integration Examples
集成示例
NPM Package Release
NPM包发布
bash
undefinedbash
undefinedNPM package release
NPM package release
npx ruv-swarm github npm-release
--version patch
--test-all
--publish-beta
--tag-latest-on-success
--version patch
--test-all
--publish-beta
--tag-latest-on-success
undefinednpx ruv-swarm github npm-release
--version patch
--test-all
--publish-beta
--tag-latest-on-success
--version patch
--test-all
--publish-beta
--tag-latest-on-success
undefinedDocker Image Release
Docker镜像发布
bash
undefinedbash
undefinedDocker multi-arch release
Docker multi-arch release
npx ruv-swarm github docker-release
--platforms "linux$amd64,linux$arm64"
--tags "latest,v2.0.0,stable"
--scan-vulnerabilities
--push-to "dockerhub,gcr,ecr"
--platforms "linux$amd64,linux$arm64"
--tags "latest,v2.0.0,stable"
--scan-vulnerabilities
--push-to "dockerhub,gcr,ecr"
undefinednpx ruv-swarm github docker-release
--platforms "linux$amd64,linux$arm64"
--tags "latest,v2.0.0,stable"
--scan-vulnerabilities
--push-to "dockerhub,gcr,ecr"
--platforms "linux$amd64,linux$arm64"
--tags "latest,v2.0.0,stable"
--scan-vulnerabilities
--push-to "dockerhub,gcr,ecr"
undefinedMobile App Release
移动应用发布
bash
undefinedbash
undefinedMobile app store release
Mobile app store release
npx ruv-swarm github mobile-release
--platforms "ios,android"
--build-release
--submit-review
--staged-rollout
--platforms "ios,android"
--build-release
--submit-review
--staged-rollout
undefinednpx ruv-swarm github mobile-release
--platforms "ios,android"
--build-release
--submit-review
--staged-rollout
--platforms "ios,android"
--build-release
--submit-review
--staged-rollout
undefinedEmergency Procedures
应急流程
Hotfix Process
热修复流程
bash
undefinedbash
undefinedEmergency hotfix
Emergency hotfix
npx ruv-swarm github emergency-release
--severity critical
--bypass-checks security-only
--fast-track
--notify-all
--severity critical
--bypass-checks security-only
--fast-track
--notify-all
undefinednpx ruv-swarm github emergency-release
--severity critical
--bypass-checks security-only
--fast-track
--notify-all
--severity critical
--bypass-checks security-only
--fast-track
--notify-all
undefinedRollback Procedure
回滚流程
bash
undefinedbash
undefinedImmediate rollback
Immediate rollback
npx ruv-swarm github rollback
--to-version v1.9.9
--reason "Critical bug in v2.0.0"
--preserve-data
--notify-users
--to-version v1.9.9
--reason "Critical bug in v2.0.0"
--preserve-data
--notify-users
See also: [workflow-automation.md](.$workflow-automation.md), [multi-repo-swarm.md](.$multi-repo-swarm.md)npx ruv-swarm github rollback
--to-version v1.9.9
--reason "Critical bug in v2.0.0"
--preserve-data
--notify-users
--to-version v1.9.9
--reason "Critical bug in v2.0.0"
--preserve-data
--notify-users
另请参阅:[workflow-automation.md](.$workflow-automation.md), [multi-repo-swarm.md](.$multi-repo-swarm.md)