sentry-ci-integration
Installation
SKILL.md
Sentry CI Integration
Overview
Sentry releases connect errors to the code that caused them. Automating release creation in CI/CD ensures every deploy has commit association (suspect commits), source maps for readable stack traces, and deployment tracking across environments. This skill covers sentry-cli commands, the official GitHub Action, build tool plugins (@sentry/webpack-plugin, @sentry/vite-plugin, @sentry/esbuild-plugin), and multi-platform CI configurations.
Prerequisites
- Sentry account with a project at sentry.io
SENTRY_AUTH_TOKEN— generate at sentry.io/settings/auth-tokens/ with scopesproject:releasesandorg:readSENTRY_ORGandSENTRY_PROJECTenvironment variables matching your organization and project slugs- Source maps generated during your build step (
devtool: 'source-map'in webpack,build.sourcemap: truein Vite) - Git integration installed in Sentry (sentry.io/settings/integrations/ — GitHub, GitLab, or Bitbucket) for commit association
sentry-cliavailable vianpm install -g @sentry/cli,npx @sentry/cli, or thegetsentry/sentry-cliDocker image
Instructions
Step 1 — Configure Environment Variables and Auth Token
Set up the three required environment variables in your CI platform. Every sentry-cli command reads these automatically.