Repository navigation
ci(release): Keep 3.x releases off the v4 npm, Homebrew, and Docker tags - #3520
Open
sentry-junior[bot] wants to merge 2 commits into
Open
sentry-junior[bot] wants to merge 2 commits into
sentry-junior[bot] wants to merge 2 commits into
Conversation
getsentry/toolkit publishes Sentry CLI v4 as npm `@sentry/cli` and as the `getsentry/tools/sentry-cli` formula. A later 3.x release from this repo would otherwise take npm's `latest` tag and overwrite that formula. Tag 3.x npm releases `old` when they are older than `latest`, and publish the 3.x formula as `sentry-cli@3`. Co-Authored-By: BYK <126780+BYK@users.noreply.github.com>
BYK
approved these changes
Nov 26, 2026
BYK
marked this pull request as ready for review
November 26, 2026 11:21
BYK
enabled auto-merge (rebase)
November 26, 2026 11:21
BYK
disabled auto-merge
November 26, 2026 11:21
BYK
enabled auto-merge (rebase)
November 26, 2026 11:22
getsentry/toolkit pushes Sentry CLI v4 to getsentry/sentry-cli:latest. A later 3.x release would move `latest` back to v3, so it moves `3` instead. Co-Authored-By: BYK <126780+BYK@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Companion to getsentry/toolkit#2514 and getsentry/toolkit#2513. From 4.0.0 on, getsentry/toolkit publishes Sentry CLI v4 under this repo's names: npm
@sentry/cli, thegetsentry/tools/sentry-cliformula, Docker Hubgetsentry/sentry-cli:latest, PyPIsentry-cli,downloads.sentry-cdn.com/sentry-cli/, and registryapp:sentry-cli. If this repo ships another 3.x release after that, three of its targets would undo it:@sentry/cli: Craft publishes with npm's defaultlatesttag unlesscheckPackageNameis set. With it set, a release older than the currentlatestis taggedold.Formula/sentry-cli.rb, which would movebrew upgradeusers back to 3.x. 3.x now goes to a versioned formula,sentry-cli@3(classSentryCliAT3). It installssentry-cliand v4 installssentry, so both can be installed side by side.latesttarget always retags, with no version check. It now pushesgetsentry/sentry-cli:3, a new moving tag for the newest 3.x.Docker Hub (release)still pushes the exact version.The other targets are already safe for a 3.x release. PyPI and getsentry/pypi pick the highest version. The registry target moves
latest.jsononly for a newer version. The gcs target writes only v3 file names, which v4 doesn't use.via @BYK.
--
View Session [Sentry]