Index of every page on this site: llms.txt
All skills
jeremylongshore avatar

/sentry-release-management

@0d57af8
Run it yourself

Manage Sentry releases with versioning, commit association, and source map uploads. Use when creating releases, linking commits to errors, uploading release artifacts, monitoring release health, or cleaning up old releases. Trigger with phrases like "sentry release", "create sentry version", "sentry source maps", "sentry suspect commits", "release health".

Use this Skill: https://skilld.dev/gh/jeremylongshore/tons-of-skills-marketplace/sentry-release-management

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

referencesbest-practices.md

≈743 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Best Practices

Release Naming Conventions

# Good: Predictable, traceable, unique
release: "my-app@2.1.0"           # Semver — matches package.json
release: "my-app@a1b2c3d"         # Short SHA — ties to exact commit
release: "my-app@2.1.0+a1b2c3d"   # Combined — version + commit

# Bad: Ambiguous, not traceable
release: "latest"                  # Overwritten every deploy
release: "production"              # No version info
release: "v2"                      # Too vague

Source Map Upload

  • Upload before deploy — Sentry does not retroactively apply source maps to existing events
  • Use --validate — catches malformed maps before they reach Sentry
  • Delete maps from production — source maps expose original source; use filesToDeleteAfterUpload in build plugins
  • Match --url-prefix — compare against actual script URLs in browser DevTools Network tab
# Validate before uploading
sentry-cli sourcemaps upload \
  --release="$VERSION" \
  --url-prefix="~/static/js" \
  --validate \
  --dry-run \
  ./dist

Release Health Monitoring

  • Target > 99.5% crash-free rate — investigate if it drops below this
  • Watch adoption — if adoption is low, your deploy may not have rolled out fully
  • Enable session tracking — release health requires autoSessionTracking: true in the SDK
  • Compare releases — use the Sentry UI to compare crash-free rates between consecutive releases

CI/CD Integration

#!/bin/bash
# scripts/sentry-release.sh — idempotent release script
set -euo pipefail

VERSION="${1:-my-app@$(node -p "require('./package.json').version")}"
ENVIRONMENT="${2:-production}"

sentry-cli releases new "$VERSION"
sentry-cli releases set-commits "$VERSION" --auto
sentry-cli sourcemaps upload \
  --release="$VERSION" \
  --url-prefix="~/static/js" \
  --validate \
  ./dist
sentry-cli releases finalize "$VERSION"
sentry-cli releases deploys "$VERSION" new --env "$ENVIRONMENT"

echo "Sentry release $VERSION → $ENVIRONMENT complete"

Cleanup Strategy

# Delete source maps from old releases to free storage
sentry-cli releases files "my-app@1.9.0" delete --all

# Delete releases no longer needed (removes all artifacts and deploy records)
sentry-cli releases delete "my-app@1.9.0"

# Keep at least the last 5 releases for regression comparison

Common Pitfalls

Pitfall Impact Prevention
Not quoting $VERSION Breaks on versions with special chars Always use "$VERSION"
Shallow clone in CI --auto commit detection fails Use fetch-depth: 0
Different release string in SDK vs CLI Events not linked to releases Inject build-time env var
Uploading maps after deploy First errors have minified traces Run CLI before deploy step
Missing org:read scope on token Commit association silently fails Include both project:releases + org:read

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No alerts2mo3 checks · Risk SAFE
  • Gen Agent Trust Hub2mo

    This skill provides instructions for managing Sentry releases, including automated versioning, commit association, and source map uploads. It follows industry best practices for CI/CD integration and utilizes official Sentry tools and APIs for their intended purposes.

  • Socket2mo

    No alerts

  • Snyk2mo

    Risk: LOW · No issues

Signed by skilld at 0d57af8. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub yesterday.

Activeupdated 3 months ago
What it can do
Reads files Edits files Runs commands
version
1.51.0
author
Jeremy Longshore <jeremy@intentsolutions.io>
compatibility
Designed for Claude Code
All 8 allowed tools
ReadWriteEditBash(sentry-cli:*)Bash(npx:*)Bash(node:*)Bash(git:*)Grep
Other metadata
tags
[
  "saas",
  "sentry",
  "releases",
  "source-maps",
  "ci-cd",
  "versioning"
]

README badge

README badge for jeremylongshore/tons-of-skills-marketplace/sentry-release-management