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.

referencesrelease-workflow.md

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

Release Workflow

Complete Release Lifecycle

Every Sentry release follows five stages: create, associate commits, upload artifacts, finalize, and deploy.

1. Create Release

# Semver naming (ties to package version)
VERSION="my-app@$(node -p "require('./package.json').version")"
sentry-cli releases new "$VERSION"

# SHA naming (ties to exact deployment)
VERSION="my-app@$(git rev-parse --short HEAD)"
sentry-cli releases new "$VERSION"

# Combined: my-app@2.1.0+a1b2c3d
VERSION="my-app@$(node -p "require('./package.json').version")+$(git rev-parse --short HEAD)"
sentry-cli releases new "$VERSION"

# Auto-propose version from git
VERSION=$(sentry-cli releases propose-version)
sentry-cli releases new "$VERSION"

2. Associate Commits

Commit association powers suspect commits — Sentry matches error stack frames against recently changed files.

# Auto-detect from git log (requires GitHub/GitLab integration)
sentry-cli releases set-commits "$VERSION" --auto

# Specify commit range manually
sentry-cli releases set-commits "$VERSION" \
  --commit "my-org/my-repo@from_sha..to_sha"

# Single commit reference
sentry-cli releases set-commits "$VERSION" \
  --commit "my-org/my-repo@abc1234"

3. Upload Source Maps

# Standard upload with validation
sentry-cli sourcemaps upload \
  --release="$VERSION" \
  --url-prefix="~/static/js" \
  --validate \
  ./dist

# Multiple directories (SSR apps)
sentry-cli sourcemaps upload \
  --release="$VERSION" \
  --url-prefix="~/" \
  ./dist/client ./dist/server

# Dry run to validate without uploading
sentry-cli sourcemaps upload \
  --release="$VERSION" \
  --url-prefix="~/static/js" \
  --validate \
  --dry-run \
  ./dist

4. Finalize Release

# Mark release as complete
sentry-cli releases finalize "$VERSION"

# Or create and finalize in one step (skips source map upload)
sentry-cli releases new "$VERSION" --finalize

5. Record Deploy

# Production deploy
sentry-cli releases deploys "$VERSION" new \
  --env production \
  --started $(date +%s) \
  --finished $(date +%s)

# Staging deploy
sentry-cli releases deploys "$VERSION" new --env staging

Artifact Management

# List artifacts for a release
sentry-cli releases files "$VERSION" list

# Upload a single file
sentry-cli releases files "$VERSION" upload ./dist/app.js.map

# Delete all artifacts (free storage)
sentry-cli releases files "$VERSION" delete --all

# Delete the release entirely
sentry-cli releases delete "$VERSION"

SDK Configuration

The SDK release value must match the CLI version exactly:

import * as Sentry from '@sentry/node';

Sentry.init({
  dsn: process.env.SENTRY_DSN,
  release: process.env.SENTRY_RELEASE,
  environment: process.env.NODE_ENV,
  autoSessionTracking: true,
});

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