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
-
Create release using git SHA, semantic version, or package.json version
-
Associate commits with sentry-cli releases set-commits --auto
-
Upload source maps from build directory with URL prefix if needed
-
Finalize release to mark it complete
-
Configure SDK release option to match CLI release version
-
Set up Webpack DefinePlugin or environment variable for build-time injection
-
Use release management API to list, view, or delete releases
-
Connect GitHub/GitLab integration for automatic commit linking
-
Create release script to automate the full workflow
-
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
-
Sentry Releases
-
Sentry CLI Releases
Overview
Manage Sentry releases and associate commits.