首页/ AI 技能 / @skilllib/skill-2117939930272414996
Skill站外收录 @skilllib/skill-2117939930272414996

sentry-ci-integration

实现 Sentry与 GitHub Actions、GitLab CI 等持续集成系统的深度对接,支持自动创建和发布版本、上传 source maps、关联代码提交、发送部署通知,确保错误堆栈可追溯、版本变更可追踪。

0.0 (0) 17 次安装 原作者 编程导航
收录于 2026-01-22
开发运维 AI 技能

Skills.MD

# Sentry Ci Integration ## Prerequisites - Sentry CLI installed or available in CI - `SENTRY_AUTH_TOKEN` secret configured - `SENTRY_ORG` and `SENTRY_PROJECT` environment variables set - Source maps generated during build ## Instructions 1. Add SENTRY_AUTH_TOKEN secret to CI platform (GitHub, GitLab, CircleCI) 2. Configure SENTRY_ORG and SENTRY_PROJECT environment variables 3. Create workflow step to build application with SENTRY_RELEASE env 4. Add step to create Sentry release using sentry-cli or action 5. Upload source maps from build output directory 6. Associate commits with release using set-commits --auto 7. Finalize the release to mark it complete 8. Add deploy notification step for environment tracking 9. Configure checkout with fetch-depth: 0 for full git history 10. Test workflow by pushing to trigger release creation ## Output - Release created and finalized in Sentry - Source maps uploaded for stack trace mapping - Commits associated with release - Deploy notification sent to Sentry ## Error Handling See `{baseDir}/references/errors.md` for comprehensive error handling. ## Examples See `{baseDir}/references/examples.md` for detailed examples. ## Resources - [Sentry CI/CD](https://docs.sentry.io/product/releases/setup/release-automation/) - [GitHub Action](https://github.com/getsentry/action-release)

评论 0

还没有评论,来抢沙发。