技能 编程开发 Sentry 发布管理

Sentry 发布管理

v20260311
sentry-release-management
通过命令行或 CI 脚本创建 Sentry 版本、关联提交、上传 source map 并清理历史产物,帮助团队掌握每次部署状态。
获取技能
137 次下载
概览

Sentry Release Management

Prerequisites

  • Sentry CLI installed (npm install -g @sentry/cli)
  • SENTRY_AUTH_TOKEN environment variable set
  • SENTRY_ORG and SENTRY_PROJECT configured
  • Source maps available in build output

Instructions

  1. Create release using git SHA, semantic version, or package.json version
  2. Associate commits with sentry-cli releases set-commits --auto
  3. Upload source maps from build directory with URL prefix if needed
  4. Finalize release to mark it complete
  5. Configure SDK release option to match CLI release version
  6. Set up Webpack DefinePlugin or environment variable for build-time injection
  7. Use release management API to list, view, or delete releases
  8. Connect GitHub/GitLab integration for automatic commit linking
  9. Create release script to automate the full workflow
  10. Implement source map cleanup for old releases to manage storage

Output

  • Release created with version identifier
  • Commits associated with release
  • Source maps uploaded
  • Release finalized and ready

Error Handling

See ${CLAUDE_SKILL_DIR}/references/errors.md for comprehensive error handling.

Examples

See ${CLAUDE_SKILL_DIR}/references/examples.md for detailed examples.

Resources

Overview

Manage Sentry releases and associate commits.

信息
Category 编程开发
Name sentry-release-management
版本 v20260311
大小 3.03KB
更新时间 2026-03-12
语言