github-release-management

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

GitHub Release Management Skill

GitHub 发布管理 Skill

Intelligent release automation and orchestration using AI swarms for comprehensive software releases - from changelog generation to multi-platform deployment with rollback capabilities.
借助AI集群实现智能的发布自动化与编排,覆盖从变更日志生成到多平台部署及回滚的全流程软件发布管理。

Quick Start

快速开始

Simple Release Flow

简单发布流程

bash
undefined
bash
undefined

Plan and create a release

Plan and create a release

gh release create v2.0.0
--draft
--generate-notes
--title "Release v2.0.0"
gh release create v2.0.0
--draft
--generate-notes
--title "Release v2.0.0"

Orchestrate with swarm

Orchestrate with swarm

npx claude-flow github release-create
--version "2.0.0"
--build-artifacts
--deploy-targets "npm,docker,github"
undefined
npx claude-flow github release-create
--version "2.0.0"
--build-artifacts
--deploy-targets "npm,docker,github"
undefined

Full Automated Release

全自动化发布

bash
undefined
bash
undefined

Initialize release swarm

Initialize release swarm

npx claude-flow swarm init --topology hierarchical
npx claude-flow swarm init --topology hierarchical

Execute complete release pipeline

Execute complete release pipeline

npx claude-flow sparc pipeline "Release v2.0.0 with full validation"

---
npx claude-flow sparc pipeline "Release v2.0.0 with full validation"

---

Core Capabilities

核心功能

1. Release Planning & Version Management

1. 发布规划与版本管理

  • Semantic version analysis and suggestion
  • Breaking change detection from commits
  • Release timeline generation
  • Multi-package version coordination
  • 语义化版本分析与建议
  • 从提交中检测破坏性变更
  • 生成发布时间线
  • 多包版本协同

2. Automated Testing & Validation

2. 自动化测试与验证

  • Multi-stage test orchestration
  • Cross-platform compatibility testing
  • Performance regression detection
  • Security vulnerability scanning
  • 多阶段测试编排
  • 跨平台兼容性测试
  • 性能退化检测
  • 安全漏洞扫描

3. Build & Deployment Orchestration

3. 构建与部署编排

  • Multi-platform build coordination
  • Parallel artifact generation
  • Progressive deployment strategies
  • Automated rollback mechanisms
  • 多平台构建协同
  • 并行制品生成
  • 渐进式部署策略
  • 自动化回滚机制

4. Documentation & Communication

4. 文档与沟通

  • Automated changelog generation
  • Release notes with categorization
  • Migration guide creation
  • Stakeholder notification

  • 自动化变更日志生成
  • 带分类的发布说明
  • 迁移指南创建
  • 干系人通知

Progressive Disclosure: Level 1 - Basic Usage

渐进式披露:Level 1 - 基础用法

Essential Release Commands

必备发布命令

Create Release Draft

创建发布草稿

bash
undefined
bash
undefined

Get last release tag

Get last release tag

LAST_TAG=$(gh release list --limit 1 --json tagName -q '.[0].tagName')
LAST_TAG=$(gh release list --limit 1 --json tagName -q '.[0].tagName')

Generate changelog from commits

Generate changelog from commits

CHANGELOG=$(gh api repos/:owner/:repo/compare/${LAST_TAG}...HEAD
--jq '.commits[].commit.message')
CHANGELOG=$(gh api repos/:owner/:repo/compare/${LAST_TAG}...HEAD
--jq '.commits[].commit.message')

Create draft release

Create draft release

gh release create v2.0.0
--draft
--title "Release v2.0.0"
--notes "$CHANGELOG"
--target main
undefined
gh release create v2.0.0
--draft
--title "Release v2.0.0"
--notes "$CHANGELOG"
--target main
undefined

Basic Version Bump

基础版本升级

bash
undefined
bash
undefined

Update package.json version

Update package.json version

npm version patch # or minor, major
npm version patch # or minor, major

Push version tag

Push version tag

git push --follow-tags
undefined
git push --follow-tags
undefined

Simple Deployment

简单部署

bash
undefined
bash
undefined

Build and publish npm package

Build and publish npm package

npm run build npm publish
npm run build npm publish

Create GitHub release

Create GitHub release

gh release create $(npm pkg get version)
--generate-notes
undefined
gh release create $(npm pkg get version)
--generate-notes
undefined

Quick Integration Example

快速集成示例

javascript
// Simple release preparation in Claude Code
[Single Message]:
  // Update version files
  Edit("package.json", { old: '"version": "1.0.0"', new: '"version": "2.0.0"' })

  // Generate changelog
  Bash("gh api repos/:owner/:repo/compare/v1.0.0...HEAD --jq '.commits[].commit.message' > CHANGELOG.md")

  // Create release branch
  Bash("git checkout -b release/v2.0.0")
  Bash("git add -A && git commit -m 'release: Prepare v2.0.0'")

  // Create PR
  Bash("gh pr create --title 'Release v2.0.0' --body 'Automated release preparation'")

javascript
// Simple release preparation in Claude Code
[Single Message]:
  // Update version files
  Edit("package.json", { old: '"version": "1.0.0"', new: '"version": "2.0.0"' })

  // Generate changelog
  Bash("gh api repos/:owner/:repo/compare/v1.0.0...HEAD --jq '.commits[].commit.message' > CHANGELOG.md")

  // Create release branch
  Bash("git checkout -b release/v2.0.0")
  Bash("git add -A && git commit -m 'release: Prepare v2.0.0'")

  // Create PR
  Bash("gh pr create --title 'Release v2.0.0' --body 'Automated release preparation'")

Progressive Disclosure: Level 2 - Swarm Coordination

渐进式披露:Level 2 - 集群协调

AI Swarm Release Orchestration

AI集群发布编排

Initialize Release Swarm

初始化发布集群

javascript
// Set up coordinated release team
[Single Message - Swarm Initialization]:
  mcp__claude-flow__swarm_init {
    topology: "hierarchical",
    maxAgents: 6,
    strategy: "balanced"
  }

  // Spawn specialized agents
  mcp__claude-flow__agent_spawn { type: "coordinator", name: "Release Director" }
  mcp__claude-flow__agent_spawn { type: "coder", name: "Version Manager" }
  mcp__claude-flow__agent_spawn { type: "tester", name: "QA Engineer" }
  mcp__claude-flow__agent_spawn { type: "reviewer", name: "Release Reviewer" }
  mcp__claude-flow__agent_spawn { type: "analyst", name: "Deployment Analyst" }
  mcp__claude-flow__agent_spawn { type: "researcher", name: "Compatibility Checker" }
javascript
// Set up coordinated release team
[Single Message - Swarm Initialization]:
  mcp__claude-flow__swarm_init {
    topology: "hierarchical",
    maxAgents: 6,
    strategy: "balanced"
  }

  // Spawn specialized agents
  mcp__claude-flow__agent_spawn { type: "coordinator", name: "Release Director" }
  mcp__claude-flow__agent_spawn { type: "coder", name: "Version Manager" }
  mcp__claude-flow__agent_spawn { type: "tester", name: "QA Engineer" }
  mcp__claude-flow__agent_spawn { type: "reviewer", name: "Release Reviewer" }
  mcp__claude-flow__agent_spawn { type: "analyst", name: "Deployment Analyst" }
  mcp__claude-flow__agent_spawn { type: "researcher", name: "Compatibility Checker" }

Coordinated Release Workflow

协同发布工作流

javascript
[Single Message - Full Release Coordination]:
  // Create release branch
  Bash("gh api repos/:owner/:repo/git/refs --method POST -f ref='refs/heads/release/v2.0.0' -f sha=$(gh api repos/:owner/:repo/git/refs/heads/main --jq '.object.sha')")

  // Orchestrate release preparation
  mcp__claude-flow__task_orchestrate {
    task: "Prepare release v2.0.0 with comprehensive testing and validation",
    strategy: "sequential",
    priority: "critical",
    maxAgents: 6
  }

  // Update all release files
  Write("package.json", "[updated version]")
  Write("CHANGELOG.md", "[release changelog]")
  Write("RELEASE_NOTES.md", "[detailed notes]")

  // Run comprehensive validation
  Bash("npm install && npm test && npm run lint && npm run build")

  // Create release PR
  Bash(`gh pr create \
    --title "Release v2.0.0: Feature Set and Improvements" \
    --head "release/v2.0.0" \
    --base "main" \
    --body "$(cat RELEASE_NOTES.md)"`)

  // Track progress
  TodoWrite { todos: [
    { content: "Prepare release branch", status: "completed", priority: "critical" },
    { content: "Run validation suite", status: "completed", priority: "high" },
    { content: "Create release PR", status: "completed", priority: "high" },
    { content: "Code review approval", status: "pending", priority: "high" },
    { content: "Merge and deploy", status: "pending", priority: "critical" }
  ]}

  // Store release state
  mcp__claude-flow__memory_usage {
    action: "store",
    key: "release/v2.0.0/status",
    value: JSON.stringify({
      version: "2.0.0",
      stage: "validation_complete",
      timestamp: Date.now(),
      ready_for_review: true
    })
  }
javascript
[Single Message - Full Release Coordination]:
  // Create release branch
  Bash("gh api repos/:owner/:repo/git/refs --method POST -f ref='refs/heads/release/v2.0.0' -f sha=$(gh api repos/:owner/:repo/git/refs/heads/main --jq '.object.sha')")

  // Orchestrate release preparation
  mcp__claude-flow__task_orchestrate {
    task: "Prepare release v2.0.0 with comprehensive testing and validation",
    strategy: "sequential",
    priority: "critical",
    maxAgents: 6
  }

  // Update all release files
  Write("package.json", "[updated version]")
  Write("CHANGELOG.md", "[release changelog]")
  Write("RELEASE_NOTES.md", "[detailed notes]")

  // Run comprehensive validation
  Bash("npm install && npm test && npm run lint && npm run build")

  // Create release PR
  Bash(`gh pr create \
    --title "Release v2.0.0: Feature Set and Improvements" \
    --head "release/v2.0.0" \
    --base "main" \
    --body "$(cat RELEASE_NOTES.md)"`)

  // Track progress
  TodoWrite { todos: [
    { content: "Prepare release branch", status: "completed", priority: "critical" },
    { content: "Run validation suite", status: "completed", priority: "high" },
    { content: "Create release PR", status: "completed", priority: "high" },
    { content: "Code review approval", status: "pending", priority: "high" },
    { content: "Merge and deploy", status: "pending", priority: "critical" }
  ]}

  // Store release state
  mcp__claude-flow__memory_usage {
    action: "store",
    key: "release/v2.0.0/status",
    value: JSON.stringify({
      version: "2.0.0",
      stage: "validation_complete",
      timestamp: Date.now(),
      ready_for_review: true
    })
  }

Release Agent Specializations

发布Agent专业化

Changelog Agent

变更日志Agent

bash
undefined
bash
undefined

Get merged PRs between versions

Get 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)")")
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)")")

Get commit history

Get commit history

COMMITS=$(gh api repos/:owner/:repo/compare/v1.0.0...HEAD
--jq '.commits[].commit.message')
COMMITS=$(gh api repos/:owner/:repo/compare/v1.0.0...HEAD
--jq '.commits[].commit.message')

Generate categorized changelog

Generate categorized changelog

npx claude-flow github changelog
--prs "$PRS"
--commits "$COMMITS"
--from v1.0.0
--to HEAD
--categorize
--add-migration-guide

**Capabilities:**
- Semantic commit analysis
- Breaking change detection
- Contributor attribution
- Migration guide generation
- Multi-language support
npx claude-flow github changelog
--prs "$PRS"
--commits "$COMMITS"
--from v1.0.0
--to HEAD
--categorize
--add-migration-guide

**功能:**
- 语义化提交分析
- 破坏性变更检测
- 贡献者归因
- 迁移指南生成
- 多语言支持

Version Agent

版本Agent

bash
undefined
bash
undefined

Intelligent version suggestion

Intelligent version suggestion

npx claude-flow github version-suggest
--current v1.2.3
--analyze-commits
--check-compatibility
--suggest-pre-release

**Logic:**
- Analyzes commit messages and PR labels
- Detects breaking changes via keywords
- Suggests appropriate version bump
- Handles pre-release versioning
- Validates version constraints
npx claude-flow github version-suggest
--current v1.2.3
--analyze-commits
--check-compatibility
--suggest-pre-release

**逻辑:**
- 分析提交消息与PR标签
- 通过关键词检测破坏性变更
- 建议合适的版本升级
- 处理预发布版本
- 验证版本约束

Build Agent

构建Agent

bash
undefined
bash
undefined

Multi-platform build coordination

Multi-platform build coordination

npx claude-flow github release-build
--platforms "linux,macos,windows"
--architectures "x64,arm64"
--parallel
--optimize-size

**Features:**
- Cross-platform compilation
- Parallel build execution
- Artifact optimization and compression
- Dependency bundling
- Build caching and reuse
npx claude-flow github release-build
--platforms "linux,macos,windows"
--architectures "x64,arm64"
--parallel
--optimize-size

**特性:**
- 跨平台编译
- 并行构建执行
- 制品优化与压缩
- 依赖打包
- 构建缓存与复用

Test Agent

测试Agent

bash
undefined
bash
undefined

Comprehensive pre-release testing

Comprehensive pre-release testing

npx claude-flow github release-test
--suites "unit,integration,e2e,performance"
--environments "node:16,node:18,node:20"
--fail-fast false
--generate-report
undefined
npx claude-flow github release-test
--suites "unit,integration,e2e,performance"
--environments "node:16,node:18,node:20"
--fail-fast false
--generate-report
undefined

Deploy Agent

部署Agent

bash
undefined
bash
undefined

Multi-target deployment orchestration

Multi-target deployment orchestration

npx claude-flow github release-deploy
--targets "npm,docker,github,s3"
--staged-rollout
--monitor-metrics
--auto-rollback

---
npx claude-flow github release-deploy
--targets "npm,docker,github,s3"
--staged-rollout
--monitor-metrics
--auto-rollback

---

Progressive Disclosure: Level 3 - Advanced Workflows

渐进式披露:Level 3 - 高级工作流

Multi-Package Release Coordination

多包发布协同

Monorepo Release Strategy

单仓库多包发布策略

javascript
[Single Message - Multi-Package Release]:
  // Initialize mesh topology for cross-package coordination
  mcp__claude-flow__swarm_init { topology: "mesh", maxAgents: 8 }

  // Spawn package-specific agents
  Task("Package A Manager", "Coordinate claude-flow package release v1.0.72", "coder")
  Task("Package B Manager", "Coordinate ruv-swarm package release v1.0.12", "coder")
  Task("Integration Tester", "Validate cross-package compatibility", "tester")
  Task("Version Coordinator", "Align dependencies and versions", "coordinator")

  // Update all packages simultaneously
  Write("packages/claude-flow/package.json", "[v1.0.72 content]")
  Write("packages/ruv-swarm/package.json", "[v1.0.12 content]")
  Write("CHANGELOG.md", "[consolidated changelog]")

  // Run cross-package validation
  Bash("cd packages/claude-flow && npm install && npm test")
  Bash("cd packages/ruv-swarm && npm install && npm test")
  Bash("npm run test:integration")

  // Create unified release PR
  Bash(`gh pr create \
    --title "Release: claude-flow v1.0.72, ruv-swarm v1.0.12" \
    --body "Multi-package coordinated release with cross-compatibility validation"`)
javascript
[Single Message - Multi-Package Release]:
  // Initialize mesh topology for cross-package coordination
  mcp__claude-flow__swarm_init { topology: "mesh", maxAgents: 8 }

  // Spawn package-specific agents
  Task("Package A Manager", "Coordinate claude-flow package release v1.0.72", "coder")
  Task("Package B Manager", "Coordinate ruv-swarm package release v1.0.12", "coder")
  Task("Integration Tester", "Validate cross-package compatibility", "tester")
  Task("Version Coordinator", "Align dependencies and versions", "coordinator")

  // Update all packages simultaneously
  Write("packages/claude-flow/package.json", "[v1.0.72 content]")
  Write("packages/ruv-swarm/package.json", "[v1.0.12 content]")
  Write("CHANGELOG.md", "[consolidated changelog]")

  // Run cross-package validation
  Bash("cd packages/claude-flow && npm install && npm test")
  Bash("cd packages/ruv-swarm && npm install && npm test")
  Bash("npm run test:integration")

  // Create unified release PR
  Bash(`gh pr create \
    --title "Release: claude-flow v1.0.72, ruv-swarm v1.0.12" \
    --body "Multi-package coordinated release with cross-compatibility validation"`)

Progressive Deployment Strategy

渐进式部署策略

Staged Rollout Configuration

分阶段发布配置

yaml
undefined
yaml
undefined

.github/release-deployment.yml

.github/release-deployment.yml

deployment: strategy: progressive stages: - name: canary percentage: 5 duration: 1h metrics: - error-rate < 0.1% - latency-p99 < 200ms auto-advance: true
- name: partial
  percentage: 25
  duration: 4h
  validation: automated-tests
  approval: qa-team

- name: rollout
  percentage: 50
  duration: 8h
  monitor: true

- name: full
  percentage: 100
  approval: release-manager
  rollback-enabled: true
undefined
deployment: strategy: progressive stages: - name: canary percentage: 5 duration: 1h metrics: - error-rate < 0.1% - latency-p99 < 200ms auto-advance: true
- name: partial
  percentage: 25
  duration: 4h
  validation: automated-tests
  approval: qa-team

- name: rollout
  percentage: 50
  duration: 8h
  monitor: true

- name: full
  percentage: 100
  approval: release-manager
  rollback-enabled: true
undefined

Execute Staged Deployment

执行分阶段部署

bash
undefined
bash
undefined

Deploy with progressive rollout

Deploy with progressive rollout

npx claude-flow github release-deploy
--version v2.0.0
--strategy progressive
--config .github/release-deployment.yml
--monitor-metrics
--auto-rollback-on-error
undefined
npx claude-flow github release-deploy
--version v2.0.0
--strategy progressive
--config .github/release-deployment.yml
--monitor-metrics
--auto-rollback-on-error
undefined

Multi-Repository Coordination

多仓库协同

Coordinated Multi-Repo Release

协同多仓库发布

bash
undefined
bash
undefined

Synchronize releases across repositories

Synchronize releases across repositories

npx claude-flow github multi-release
--repos "frontend:v2.0.0,backend:v2.1.0,cli:v1.5.0"
--ensure-compatibility
--atomic-release
--synchronized
--rollback-all-on-failure
undefined
npx claude-flow github multi-release
--repos "frontend:v2.0.0,backend:v2.1.0,cli:v1.5.0"
--ensure-compatibility
--atomic-release
--synchronized
--rollback-all-on-failure
undefined

Cross-Repo Dependency Management

跨仓库依赖管理

javascript
[Single Message - Cross-Repo Release]:
  // Initialize star topology for centralized coordination
  mcp__claude-flow__swarm_init { topology: "star", maxAgents: 6 }

  // Spawn repo-specific coordinators
  Task("Frontend Release", "Release frontend v2.0.0 with API compatibility", "coordinator")
  Task("Backend Release", "Release backend v2.1.0 with breaking changes", "coordinator")
  Task("CLI Release", "Release CLI v1.5.0 with new commands", "coordinator")
  Task("Compatibility Checker", "Validate cross-repo compatibility", "researcher")

  // Coordinate version updates across repos
  Bash("gh api repos/org/frontend/dispatches --method POST -f event_type='release' -F client_payload[version]=v2.0.0")
  Bash("gh api repos/org/backend/dispatches --method POST -f event_type='release' -F client_payload[version]=v2.1.0")
  Bash("gh api repos/org/cli/dispatches --method POST -f event_type='release' -F client_payload[version]=v1.5.0")

  // Monitor all releases
  mcp__claude-flow__swarm_monitor { interval: 5, duration: 300 }
javascript
[Single Message - Cross-Repo Release]:
  // Initialize star topology for centralized coordination
  mcp__claude-flow__swarm_init { topology: "star", maxAgents: 6 }

  // Spawn repo-specific coordinators
  Task("Frontend Release", "Release frontend v2.0.0 with API compatibility", "coordinator")
  Task("Backend Release", "Release backend v2.1.0 with breaking changes", "coordinator")
  Task("CLI Release", "Release CLI v1.5.0 with new commands", "coordinator")
  Task("Compatibility Checker", "Validate cross-repo compatibility", "researcher")

  // Coordinate version updates across repos
  Bash("gh api repos/org/frontend/dispatches --method POST -f event_type='release' -F client_payload[version]=v2.0.0")
  Bash("gh api repos/org/backend/dispatches --method POST -f event_type='release' -F client_payload[version]=v2.1.0")
  Bash("gh api repos/org/cli/dispatches --method POST -f event_type='release' -F client_payload[version]=v1.5.0")

  // Monitor all releases
  mcp__claude-flow__swarm_monitor { interval: 5, duration: 300 }

Hotfix Emergency Procedures

紧急热修复流程

Emergency Hotfix Workflow

紧急热修复工作流

bash
undefined
bash
undefined

Fast-track critical bug fix

Fast-track critical bug fix

npx claude-flow github emergency-release
--issue 789
--severity critical
--target-version v1.2.4
--cherry-pick-commits
--bypass-checks security-only
--fast-track
--notify-all
undefined
npx claude-flow github emergency-release
--issue 789
--severity critical
--target-version v1.2.4
--cherry-pick-commits
--bypass-checks security-only
--fast-track
--notify-all
undefined

Automated Hotfix Process

自动化热修复流程

javascript
[Single Message - Emergency Hotfix]:
  // Create hotfix branch from last stable release
  Bash("git checkout -b hotfix/v1.2.4 v1.2.3")

  // Cherry-pick critical fixes
  Bash("git cherry-pick abc123def")

  // Fast validation
  Bash("npm run test:critical && npm run build")

  // Create emergency release
  Bash(`gh release create v1.2.4 \
    --title "HOTFIX v1.2.4: Critical Security Patch" \
    --notes "Emergency release addressing CVE-2024-XXXX" \
    --prerelease=false`)

  // Immediate deployment
  Bash("npm publish --tag hotfix")

  // Notify stakeholders
  Bash(`gh issue create \
    --title "🚨 HOTFIX v1.2.4 Deployed" \
    --body "Critical security patch deployed. Please update immediately." \
    --label "critical,security,hotfix"`)

javascript
[Single Message - Emergency Hotfix]:
  // Create hotfix branch from last stable release
  Bash("git checkout -b hotfix/v1.2.4 v1.2.3")

  // Cherry-pick critical fixes
  Bash("git cherry-pick abc123def")

  // Fast validation
  Bash("npm run test:critical && npm run build")

  // Create emergency release
  Bash(`gh release create v1.2.4 \
    --title "HOTFIX v1.2.4: Critical Security Patch" \
    --notes "Emergency release addressing CVE-2024-XXXX" \
    --prerelease=false`)

  // Immediate deployment
  Bash("npm publish --tag hotfix")

  // Notify stakeholders
  Bash(`gh issue create \
    --title "🚨 HOTFIX v1.2.4 Deployed" \
    --body "Critical security patch deployed. Please update immediately." \
    --label "critical,security,hotfix"`)

Progressive Disclosure: Level 4 - Enterprise Features

渐进式披露:Level 4 - 企业级特性

Release Configuration Management

发布配置管理

Comprehensive Release Config

全面发布配置

yaml
undefined
yaml
undefined

.github/release-swarm.yml

.github/release-swarm.yml

version: 2.0.0
release: versioning: strategy: semantic breaking-keywords: ["BREAKING", "BREAKING CHANGE", "!"] feature-keywords: ["feat", "feature"] fix-keywords: ["fix", "bugfix"]
changelog: sections: - title: "🚀 Features" labels: ["feature", "enhancement"] emoji: true - title: "🐛 Bug Fixes" labels: ["bug", "fix"] - title: "💥 Breaking Changes" labels: ["breaking"] highlight: true - title: "📚 Documentation" labels: ["docs", "documentation"] - title: "⚡ Performance" labels: ["performance", "optimization"] - title: "🔒 Security" labels: ["security"] priority: critical
artifacts: - name: npm-package build: npm run build test: npm run test:all publish: npm publish registry: https://registry.npmjs.org
- name: docker-image
  build: docker build -t app:$VERSION .
  test: docker run app:$VERSION npm test
  publish: docker push app:$VERSION
  platforms: [linux/amd64, linux/arm64]

- name: binaries
  build: ./scripts/build-binaries.sh
  platforms: [linux, macos, windows]
  architectures: [x64, arm64]
  upload: github-release
  sign: true
validation: pre-release: - lint: npm run lint - typecheck: npm run typecheck - unit-tests: npm run test:unit - integration-tests: npm run test:integration - security-scan: npm audit - license-check: npm run license-check
post-release:
  - smoke-tests: npm run test:smoke
  - deployment-validation: ./scripts/validate-deployment.sh
  - performance-baseline: npm run benchmark
deployment: environments: - name: staging auto-deploy: true validation: npm run test:e2e approval: false
  - name: production
    auto-deploy: false
    approval-required: true
    approvers: ["release-manager", "tech-lead"]
    rollback-enabled: true
    health-checks:
      - endpoint: /health
        expected: 200
        timeout: 30s
monitoring: metrics: - error-rate: <1% - latency-p95: <500ms - availability: >99.9% - memory-usage: <80%
alerts:
  - type: slack
    channel: releases
    on: [deploy, rollback, error]
  - type: email
    recipients: ["team@company.com"]
    on: [critical-error, rollback]
  - type: pagerduty
    service: production-releases
    on: [critical-error]
rollback: auto-rollback: triggers: - error-rate > 5% - latency-p99 > 2000ms - availability < 99% grace-period: 5m
manual-rollback:
  preserve-data: true
  notify-users: true
  create-incident: true
undefined
version: 2.0.0
release: versioning: strategy: semantic breaking-keywords: ["BREAKING", "BREAKING CHANGE", "!"] feature-keywords: ["feat", "feature"] fix-keywords: ["fix", "bugfix"]
changelog: sections: - title: "🚀 Features" labels: ["feature", "enhancement"] emoji: true - title: "🐛 Bug Fixes" labels: ["bug", "fix"] - title: "💥 Breaking Changes" labels: ["breaking"] highlight: true - title: "📚 Documentation" labels: ["docs", "documentation"] - title: "⚡ Performance" labels: ["performance", "optimization"] - title: "🔒 Security" labels: ["security"] priority: critical
artifacts: - name: npm-package build: npm run build test: npm run test:all publish: npm publish registry: https://registry.npmjs.org
- name: docker-image
  build: docker build -t app:$VERSION .
  test: docker run app:$VERSION npm test
  publish: docker push app:$VERSION
  platforms: [linux/amd64, linux/arm64]

- name: binaries
  build: ./scripts/build-binaries.sh
  platforms: [linux, macos, windows]
  architectures: [x64, arm64]
  upload: github-release
  sign: true
validation: pre-release: - lint: npm run lint - typecheck: npm run typecheck - unit-tests: npm run test:unit - integration-tests: npm run test:integration - security-scan: npm audit - license-check: npm run license-check
post-release:
  - smoke-tests: npm run test:smoke
  - deployment-validation: ./scripts/validate-deployment.sh
  - performance-baseline: npm run benchmark
deployment: environments: - name: staging auto-deploy: true validation: npm run test:e2e approval: false
  - name: production
    auto-deploy: false
    approval-required: true
    approvers: ["release-manager", "tech-lead"]
    rollback-enabled: true
    health-checks:
      - endpoint: /health
        expected: 200
        timeout: 30s
monitoring: metrics: - error-rate: <1% - latency-p95: <500ms - availability: >99.9% - memory-usage: <80%
alerts:
  - type: slack
    channel: releases
    on: [deploy, rollback, error]
  - type: email
    recipients: ["team@company.com"]
    on: [critical-error, rollback]
  - type: pagerduty
    service: production-releases
    on: [critical-error]
rollback: auto-rollback: triggers: - error-rate > 5% - latency-p99 > 2000ms - availability < 99% grace-period: 5m
manual-rollback:
  preserve-data: true
  notify-users: true
  create-incident: true
undefined

Advanced Testing Strategies

高级测试策略

Comprehensive Validation Suite

全面验证套件

bash
undefined
bash
undefined

Pre-release validation with all checks

Pre-release validation with all checks

npx claude-flow github release-validate
--checks " version-conflicts, dependency-compatibility, api-breaking-changes, security-vulnerabilities, performance-regression, documentation-completeness, license-compliance, backwards-compatibility "
--block-on-failure
--generate-report
--upload-results
undefined
npx claude-flow github release-validate
--checks " version-conflicts, dependency-compatibility, api-breaking-changes, security-vulnerabilities, performance-regression, documentation-completeness, license-compliance, backwards-compatibility "
--block-on-failure
--generate-report
--upload-results
undefined

Backward Compatibility Testing

向后兼容性测试

bash
undefined
bash
undefined

Test against previous versions

Test against previous versions

npx claude-flow github compat-test
--previous-versions "v1.0,v1.1,v1.2"
--api-contracts
--data-migrations
--integration-tests
--generate-report
undefined
npx claude-flow github compat-test
--previous-versions "v1.0,v1.1,v1.2"
--api-contracts
--data-migrations
--integration-tests
--generate-report
undefined

Performance Regression Detection

性能退化检测

bash
undefined
bash
undefined

Benchmark against baseline

Benchmark against baseline

npx claude-flow github performance-test
--baseline v1.9.0
--candidate v2.0.0
--metrics "throughput,latency,memory,cpu"
--threshold 5%
--fail-on-regression
undefined
npx claude-flow github performance-test
--baseline v1.9.0
--candidate v2.0.0
--metrics "throughput,latency,memory,cpu"
--threshold 5%
--fail-on-regression
undefined

Release Monitoring & Analytics

发布监控与分析

Real-Time Release Monitoring

实时发布监控

bash
undefined
bash
undefined

Monitor release health post-deployment

Monitor release health post-deployment

npx claude-flow github release-monitor
--version v2.0.0
--metrics "error-rate,latency,throughput,adoption"
--alert-thresholds
--duration 24h
--export-dashboard
undefined
npx claude-flow github release-monitor
--version v2.0.0
--metrics "error-rate,latency,throughput,adoption"
--alert-thresholds
--duration 24h
--export-dashboard
undefined

Release Analytics & Insights

发布分析与洞察

bash
undefined
bash
undefined

Analyze release performance and adoption

Analyze release performance and adoption

npx claude-flow github release-analytics
--version v2.0.0
--compare-with v1.9.0
--metrics "adoption,performance,stability,feedback"
--generate-insights
--export-report
undefined
npx claude-flow github release-analytics
--version v2.0.0
--compare-with v1.9.0
--metrics "adoption,performance,stability,feedback"
--generate-insights
--export-report
undefined

Automated Rollback Configuration

自动化回滚配置

bash
undefined
bash
undefined

Configure intelligent auto-rollback

Configure intelligent auto-rollback

npx claude-flow github rollback-config
--triggers '{ "error-rate": ">5%", "latency-p99": ">1000ms", "availability": "<99.9%", "failed-health-checks": ">3" }'
--grace-period 5m
--notify-on-rollback
--preserve-metrics
undefined
npx claude-flow github rollback-config
--triggers '{ "error-rate": ">5%", "latency-p99": ">1000ms", "availability": "<99.9%", "failed-health-checks": ">3" }'
--grace-period 5m
--notify-on-rollback
--preserve-metrics
undefined

Security & Compliance

安全与合规

Security Scanning

安全扫描

bash
undefined
bash
undefined

Comprehensive security validation

Comprehensive security validation

npx claude-flow github release-security
--scan-dependencies
--check-secrets
--audit-permissions
--sign-artifacts
--sbom-generation
--vulnerability-report
undefined
npx claude-flow github release-security
--scan-dependencies
--check-secrets
--audit-permissions
--sign-artifacts
--sbom-generation
--vulnerability-report
undefined

Compliance Validation

合规验证

bash
undefined
bash
undefined

Ensure regulatory compliance

Ensure regulatory compliance

npx claude-flow github release-compliance
--standards "SOC2,GDPR,HIPAA"
--license-audit
--data-governance
--audit-trail
--generate-attestation

---
npx claude-flow github release-compliance
--standards "SOC2,GDPR,HIPAA"
--license-audit
--data-governance
--audit-trail
--generate-attestation

---

GitHub Actions Integration

GitHub Actions 集成

Complete Release Workflow

完整发布工作流

yaml
undefined
yaml
undefined

.github/workflows/release.yml

.github/workflows/release.yml

name: Intelligent Release Workflow on: push: tags: ['v*']
jobs: release-orchestration: runs-on: ubuntu-latest permissions: contents: write packages: write issues: write
steps:
  - name: Checkout Repository
    uses: actions/checkout@v3
    with:
      fetch-depth: 0

  - name: Setup Node.js
    uses: actions/setup-node@v3
    with:
      node-version: '20'
      cache: 'npm'

  - name: Authenticate GitHub CLI
    run: echo "${{ secrets.GITHUB_TOKEN }}" | gh auth login --with-token

  - name: Initialize Release Swarm
    run: |
      # Extract version from tag
      RELEASE_TAG=${{ github.ref_name }}
      PREV_TAG=$(gh release list --limit 2 --json tagName -q '.[1].tagName')

      # Get merged PRs for changelog
      PRS=$(gh pr list --state merged --base main --json number,title,labels,author,mergedAt \
        --jq ".[] | select(.mergedAt > \"$(gh release view $PREV_TAG --json publishedAt -q .publishedAt)\")")

      # Get commit history
      COMMITS=$(gh api repos/${{ github.repository }}/compare/${PREV_TAG}...HEAD \
        --jq '.commits[].commit.message')

      # Initialize swarm coordination
      npx claude-flow@alpha swarm init --topology hierarchical

      # Store release context
      echo "$PRS" > /tmp/release-prs.json
      echo "$COMMITS" > /tmp/release-commits.txt

  - name: Generate Release Changelog
    run: |
      # Generate intelligent changelog
      CHANGELOG=$(npx claude-flow@alpha github changelog \
        --prs "$(cat /tmp/release-prs.json)" \
        --commits "$(cat /tmp/release-commits.txt)" \
        --from $PREV_TAG \
        --to $RELEASE_TAG \
        --categorize \
        --add-migration-guide \
        --format markdown)

      echo "$CHANGELOG" > RELEASE_CHANGELOG.md

  - name: Build Release Artifacts
    run: |
      # Install dependencies
      npm ci

      # Run comprehensive validation
      npm run lint
      npm run typecheck
      npm run test:all
      npm run build

      # Build platform-specific binaries
      npx claude-flow@alpha github release-build \
        --platforms "linux,macos,windows" \
        --architectures "x64,arm64" \
        --parallel

  - name: Security Scan
    run: |
      # Run security validation
      npm audit --audit-level=moderate

      npx claude-flow@alpha github release-security \
        --scan-dependencies \
        --check-secrets \
        --sign-artifacts

  - name: Create GitHub Release
    run: |
      # Update release with generated changelog
      gh release edit ${{ github.ref_name }} \
        --notes "$(cat RELEASE_CHANGELOG.md)" \
        --draft=false

      # Upload all artifacts
      for file in dist/*; do
        gh release upload ${{ github.ref_name }} "$file"
      done

  - name: Deploy to Package Registries
    run: |
      # Publish to npm
      echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > .npmrc
      npm publish

      # Build and push Docker images
      docker build -t ${{ github.repository }}:${{ github.ref_name }} .
      docker push ${{ github.repository }}:${{ github.ref_name }}

  - name: Post-Release Validation
    run: |
      # Run smoke tests
      npm run test:smoke

      # Validate deployment
      npx claude-flow@alpha github release-validate \
        --version ${{ github.ref_name }} \
        --smoke-tests \
        --health-checks

  - name: Create Release Announcement
    run: |
      # Create announcement issue
      gh issue create \
        --title "🎉 Released ${{ github.ref_name }}" \
        --body "$(cat RELEASE_CHANGELOG.md)" \
        --label "announcement,release"

      # Notify via discussion
      gh api repos/${{ github.repository }}/discussions \
        --method POST \
        -f title="Release ${{ github.ref_name }} Now Available" \
        -f body="$(cat RELEASE_CHANGELOG.md)" \
        -f category_id="$(gh api repos/${{ github.repository }}/discussions/categories --jq '.[] | select(.slug=="announcements") | .id')"

  - name: Monitor Release
    run: |
      # Start release monitoring
      npx claude-flow@alpha github release-monitor \
        --version ${{ github.ref_name }} \
        --duration 1h \
        --alert-on-errors &
undefined
name: Intelligent Release Workflow on: push: tags: ['v*']
jobs: release-orchestration: runs-on: ubuntu-latest permissions: contents: write packages: write issues: write
steps:
  - name: Checkout Repository
    uses: actions/checkout@v3
    with:
      fetch-depth: 0

  - name: Setup Node.js
    uses: actions/setup-node@v3
    with:
      node-version: '20'
      cache: 'npm'

  - name: Authenticate GitHub CLI
    run: echo "${{ secrets.GITHUB_TOKEN }}" | gh auth login --with-token

  - name: Initialize Release Swarm
    run: |
      # Extract version from tag
      RELEASE_TAG=${{ github.ref_name }}
      PREV_TAG=$(gh release list --limit 2 --json tagName -q '.[1].tagName')

      # Get merged PRs for changelog
      PRS=$(gh pr list --state merged --base main --json number,title,labels,author,mergedAt \
        --jq ".[] | select(.mergedAt > \"$(gh release view $PREV_TAG --json publishedAt -q .publishedAt)\")")

      # Get commit history
      COMMITS=$(gh api repos/${{ github.repository }}/compare/${PREV_TAG}...HEAD \
        --jq '.commits[].commit.message')

      # Initialize swarm coordination
      npx claude-flow@alpha swarm init --topology hierarchical

      # Store release context
      echo "$PRS" > /tmp/release-prs.json
      echo "$COMMITS" > /tmp/release-commits.txt

  - name: Generate Release Changelog
    run: |
      # Generate intelligent changelog
      CHANGELOG=$(npx claude-flow@alpha github changelog \
        --prs "$(cat /tmp/release-prs.json)" \
        --commits "$(cat /tmp/release-commits.txt)" \
        --from $PREV_TAG \
        --to $RELEASE_TAG \
        --categorize \
        --add-migration-guide \
        --format markdown)

      echo "$CHANGELOG" > RELEASE_CHANGELOG.md

  - name: Build Release Artifacts
    run: |
      # Install dependencies
      npm ci

      # Run comprehensive validation
      npm run lint
      npm run typecheck
      npm run test:all
      npm run build

      # Build platform-specific binaries
      npx claude-flow@alpha github release-build \
        --platforms "linux,macos,windows" \
        --architectures "x64,arm64" \
        --parallel

  - name: Security Scan
    run: |
      # Run security validation
      npm audit --audit-level=moderate

      npx claude-flow@alpha github release-security \
        --scan-dependencies \
        --check-secrets \
        --sign-artifacts

  - name: Create GitHub Release
    run: |
      # Update release with generated changelog
      gh release edit ${{ github.ref_name }} \
        --notes "$(cat RELEASE_CHANGELOG.md)" \
        --draft=false

      # Upload all artifacts
      for file in dist/*; do
        gh release upload ${{ github.ref_name }} "$file"
      done

  - name: Deploy to Package Registries
    run: |
      # Publish to npm
      echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > .npmrc
      npm publish

      # Build and push Docker images
      docker build -t ${{ github.repository }}:${{ github.ref_name }} .
      docker push ${{ github.repository }}:${{ github.ref_name }}

  - name: Post-Release Validation
    run: |
      # Run smoke tests
      npm run test:smoke

      # Validate deployment
      npx claude-flow@alpha github release-validate \
        --version ${{ github.ref_name }} \
        --smoke-tests \
        --health-checks

  - name: Create Release Announcement
    run: |
      # Create announcement issue
      gh issue create \
        --title "🎉 Released ${{ github.ref_name }}" \
        --body "$(cat RELEASE_CHANGELOG.md)" \
        --label "announcement,release"

      # Notify via discussion
      gh api repos/${{ github.repository }}/discussions \
        --method POST \
        -f title="Release ${{ github.ref_name }} Now Available" \
        -f body="$(cat RELEASE_CHANGELOG.md)" \
        -f category_id="$(gh api repos/${{ github.repository }}/discussions/categories --jq '.[] | select(.slug=="announcements") | .id')"

  - name: Monitor Release
    run: |
      # Start release monitoring
      npx claude-flow@alpha github release-monitor \
        --version ${{ github.ref_name }} \
        --duration 1h \
        --alert-on-errors &
undefined

Hotfix Workflow

热修复工作流

yaml
undefined
yaml
undefined

.github/workflows/hotfix.yml

.github/workflows/hotfix.yml

name: Emergency Hotfix Workflow on: issues: types: [labeled]
jobs: emergency-hotfix: if: contains(github.event.issue.labels.*.name, 'critical-hotfix') runs-on: ubuntu-latest
steps:
  - name: Create Hotfix Branch
    run: |
      LAST_STABLE=$(gh release list --limit 1 --json tagName -q '.[0].tagName')
      HOTFIX_VERSION=$(echo $LAST_STABLE | awk -F. '{print $1"."$2"."$3+1}')

      git checkout -b hotfix/$HOTFIX_VERSION $LAST_STABLE

  - name: Fast-Track Testing
    run: |
      npm ci
      npm run test:critical
      npm run build

  - name: Emergency Release
    run: |
      npx claude-flow@alpha github emergency-release \
        --issue ${{ github.event.issue.number }} \
        --severity critical \
        --fast-track \
        --notify-all

---
name: Emergency Hotfix Workflow on: issues: types: [labeled]
jobs: emergency-hotfix: if: contains(github.event.issue.labels.*.name, 'critical-hotfix') runs-on: ubuntu-latest
steps:
  - name: Create Hotfix Branch
    run: |
      LAST_STABLE=$(gh release list --limit 1 --json tagName -q '.[0].tagName')
      HOTFIX_VERSION=$(echo $LAST_STABLE | awk -F. '{print $1"."$2"."$3+1}')

      git checkout -b hotfix/$HOTFIX_VERSION $LAST_STABLE

  - name: Fast-Track Testing
    run: |
      npm ci
      npm run test:critical
      npm run build

  - name: Emergency Release
    run: |
      npx claude-flow@alpha github emergency-release \
        --issue ${{ github.event.issue.number }} \
        --severity critical \
        --fast-track \
        --notify-all

---

Best Practices & Patterns

最佳实践与模式

Release Planning Guidelines

发布规划指南

1. Regular Release Cadence

1. 定期发布节奏

  • Weekly: Patch releases with bug fixes
  • Bi-weekly: Minor releases with features
  • Quarterly: Major releases with breaking changes
  • On-demand: Hotfixes for critical issues
  • 每周:包含Bug修复的补丁发布
  • 每两周:包含新功能的次要版本发布
  • 每季度:包含破坏性变更的主要版本发布
  • 按需:针对关键问题的热修复

2. Feature Freeze Strategy

2. 功能冻结策略

  • Code freeze 3 days before release
  • Only critical bug fixes allowed
  • Beta testing period for major releases
  • Stakeholder communication plan
  • 发布前3天代码冻结
  • 仅允许关键Bug修复
  • 主要版本设Beta测试期
  • 干系人沟通计划

3. Version Management Rules

3. 版本管理规则

  • Strict semantic versioning compliance
  • Breaking changes only in major versions
  • Deprecation warnings one minor version ahead
  • Cross-package version synchronization
  • 严格遵循语义化版本规范
  • 仅在主要版本中包含破坏性变更
  • 提前一个次要版本发出弃用警告
  • 跨包版本同步

Automation Recommendations

自动化建议

1. Comprehensive CI/CD Pipeline

1. 全面CI/CD流水线

  • Automated testing at every stage
  • Security scanning before release
  • Performance benchmarking
  • Documentation generation
  • 每个阶段的自动化测试
  • 发布前的安全扫描
  • 性能基准测试
  • 文档自动生成

2. Progressive Deployment

2. 渐进式部署

  • Canary releases for early detection
  • Staged rollouts with monitoring
  • Automated health checks
  • Quick rollback mechanisms
  • 金丝雀发布用于早期问题检测
  • 带监控的分阶段发布
  • 自动化健康检查
  • 快速回滚机制

3. Monitoring & Observability

3. 监控与可观测性

  • Real-time error tracking
  • Performance metrics collection
  • User adoption analytics
  • Feedback collection automation
  • 实时错误追踪
  • 性能指标收集
  • 用户采用分析
  • 反馈收集自动化

Documentation Standards

文档标准

1. Changelog Requirements

1. 变更日志要求

  • Categorized changes by type
  • Breaking changes highlighted
  • Migration guides for major versions
  • Contributor attribution
  • 按类型分类变更
  • 突出显示破坏性变更
  • 主要版本提供迁移指南
  • 贡献者归因

2. Release Notes Content

2. 发布说明内容

  • High-level feature summaries
  • Detailed technical changes
  • Upgrade instructions
  • Known issues and limitations
  • 高层级功能摘要
  • 详细技术变更
  • 升级说明
  • 已知问题与限制

3. API Documentation

3. API文档

  • Automated API doc generation
  • Example code updates
  • Deprecation notices
  • Version compatibility matrix

  • 自动化API文档生成
  • 示例代码更新
  • 弃用通知
  • 版本兼容性矩阵

Troubleshooting & Common Issues

故障排除与常见问题

Issue: Failed Release Build

问题:发布构建失败

bash
undefined
bash
undefined

Debug build failures

Debug build failures

npx claude-flow@alpha diagnostic-run
--component build
--verbose
npx claude-flow@alpha diagnostic-run
--component build
--verbose

Retry with isolated environment

Retry with isolated environment

docker run --rm -v $(pwd):/app node:20
bash -c "cd /app && npm ci && npm run build"
undefined
docker run --rm -v $(pwd):/app node:20
bash -c "cd /app && npm ci && npm run build"
undefined

Issue: Test Failures in CI

问题:CI中测试失败

bash
undefined
bash
undefined

Run tests with detailed output

Run tests with detailed output

npm run test -- --verbose --coverage
npm run test -- --verbose --coverage

Check for environment-specific issues

Check for environment-specific issues

npm run test:ci
npm run test:ci

Compare local vs CI environment

Compare local vs CI environment

npx claude-flow@alpha github compat-test
--environments "local,ci"
--compare
undefined
npx claude-flow@alpha github compat-test
--environments "local,ci"
--compare
undefined

Issue: Deployment Rollback Needed

问题:需要部署回滚

bash
undefined
bash
undefined

Immediate rollback to previous version

Immediate rollback to previous version

npx claude-flow@alpha github rollback
--to-version v1.9.9
--reason "Critical bug in v2.0.0"
--preserve-data
--notify-users
npx claude-flow@alpha github rollback
--to-version v1.9.9
--reason "Critical bug in v2.0.0"
--preserve-data
--notify-users

Investigate rollback cause

Investigate rollback cause

npx claude-flow@alpha github release-analytics
--version v2.0.0
--identify-issues
undefined
npx claude-flow@alpha github release-analytics
--version v2.0.0
--identify-issues
undefined

Issue: Version Conflicts

问题:版本冲突

bash
undefined
bash
undefined

Check and resolve version conflicts

Check and resolve version conflicts

npx claude-flow@alpha github release-validate
--checks version-conflicts
--auto-resolve
npx claude-flow@alpha github release-validate
--checks version-conflicts
--auto-resolve

Align multi-package versions

Align multi-package versions

npx claude-flow@alpha github version-sync
--packages "package-a,package-b"
--strategy semantic

---
npx claude-flow@alpha github version-sync
--packages "package-a,package-b"
--strategy semantic

---

Performance Metrics & Benchmarks

性能指标与基准

Expected Performance

预期性能

  • Release Planning: < 2 minutes
  • Build Process: 3-8 minutes (varies by project)
  • Test Execution: 5-15 minutes
  • Deployment: 2-5 minutes per target
  • Complete Pipeline: 15-30 minutes
  • 发布规划:< 2分钟
  • 构建过程:3-8分钟(因项目而异)
  • 测试执行:5-15分钟
  • 部署:每个目标2-5分钟
  • 完整流水线:15-30分钟

Optimization Tips

优化技巧

  1. Parallel Execution: Use swarm coordination for concurrent tasks
  2. Caching: Enable build and dependency caching
  3. Incremental Builds: Only rebuild changed components
  4. Test Optimization: Run critical tests first, full suite in parallel
  1. 并行执行:使用集群协调实现任务并发
  2. 缓存:启用构建与依赖缓存
  3. 增量构建:仅重新构建变更的组件
  4. 测试优化:先运行关键测试,全量测试并行执行

Success Metrics

成功指标

  • Release Frequency: Target weekly minor releases
  • Lead Time: < 2 hours from commit to production
  • Failure Rate: < 2% of releases require rollback
  • MTTR: < 30 minutes for critical hotfixes

  • 发布频率:目标每周次要版本发布
  • 前置时间:从提交到生产环境<2小时
  • 失败率:<2%的发布需要回滚
  • 平均恢复时间:关键热修复<30分钟

Related Resources

相关资源

Documentation

文档

Related Skills

相关Skills

  • github-pr-management: PR review and merge automation
  • github-workflow-automation: CI/CD workflow orchestration
  • multi-repo-coordination: Cross-repository synchronization
  • deployment-orchestration: Advanced deployment strategies
  • github-pr-management:PR评审与合并自动化
  • github-workflow-automation:CI/CD工作流编排
  • multi-repo-coordination:跨仓库同步
  • deployment-orchestration:高级部署策略

Support & Community

支持与社区

Appendix: Release Checklist Template

附录:发布检查列表模板

Pre-Release Checklist

发布前检查列表

  • Version numbers updated across all packages
  • Changelog generated and reviewed
  • Breaking changes documented with migration guide
  • All tests passing (unit, integration, e2e)
  • Security scan completed with no critical issues
  • Performance benchmarks within acceptable range
  • Documentation updated (API docs, README, examples)
  • Release notes drafted and reviewed
  • Stakeholders notified of upcoming release
  • Deployment plan reviewed and approved
  • 所有包的版本号已更新
  • 变更日志已生成并审核
  • 破坏性变更已记录并提供迁移指南
  • 所有测试通过(单元、集成、端到端)
  • 安全扫描完成且无关键问题
  • 性能基准在可接受范围内
  • 文档已更新(API文档、README、示例)
  • 发布说明已草拟并审核
  • 已通知干系人即将发布
  • 部署计划已审核并批准

Release Checklist

发布检查列表

  • Release branch created and validated
  • CI/CD pipeline completed successfully
  • Artifacts built and verified
  • GitHub release created with proper notes
  • Packages published to registries
  • Docker images pushed to container registry
  • Deployment to staging successful
  • Smoke tests passing in staging
  • Production deployment completed
  • Health checks passing
  • 已创建并验证发布分支
  • CI/CD流水线成功完成
  • 制品已构建并验证
  • 已创建带正确说明的GitHub发布
  • 包已发布到注册表
  • Docker镜像已推送到容器注册表
  • staging环境部署成功
  • staging环境冒烟测试通过
  • 生产环境部署完成
  • 健康检查通过

Post-Release Checklist

发布后检查列表

  • Release announcement published
  • Monitoring dashboards reviewed
  • Error rates within normal range
  • Performance metrics stable
  • User feedback collected
  • Documentation links verified
  • Release retrospective scheduled
  • Next release planning initiated

Version: 2.0.0 Last Updated: 2025-10-19 Maintained By: Claude Flow Team
  • 发布公告已发布
  • 已查看监控仪表板
  • 错误率在正常范围内
  • 性能指标稳定
  • 已收集用户反馈
  • 文档链接已验证
  • 已安排发布回顾
  • 已启动下一个发布规划

版本: 2.0.0 最后更新: 2025-10-19 维护团队: Claude Flow Team