From 2a815b8076721daf2496a8ad58b4b4504cfab1f4 Mon Sep 17 00:00:00 2001 From: "sentry-junior[bot]" <264270552+sentry-junior[bot]@users.noreply.github.com> Date: Thu, 26 Nov 2026 10:59:07 +0000 Subject: [PATCH 1/2] ci(release): Keep 3.x releases off the v4 npm tag and Homebrew formula 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> --- .craft.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.craft.yml b/.craft.yml index 0877762b6e..23d24ef89c 100644 --- a/.craft.yml +++ b/.craft.yml @@ -42,15 +42,20 @@ targets: id: '@sentry/cli-win32-arm64' includeNames: /^sentry-cli-win32-arm64-\d.*\.tgz$/ - # Main Sentry CLI package + # Main Sentry CLI package. getsentry/toolkit publishes v4 under this name, so + # a 3.x release must not take the `latest` tag (Craft tags it `old`). - name: npm id: '@sentry/cli' includeNames: /^sentry-cli-\d.*\.tgz$/ + checkPackageName: '@sentry/cli' + # getsentry/toolkit publishes v4 as the `sentry-cli` formula, so 3.x + # releases go to a versioned formula. - name: brew tap: getsentry/tools + formula: sentry-cli@3 template: > - class SentryCli < Formula + class SentryCliAT3 < Formula desc "Sentry command-line client for some generic tasks" homepage "https://github.com/getsentry/sentry-cli" version "{{version}}" From ae7670351209572cb8ebaa0a7a18d9205c01be8a Mon Sep 17 00:00:00 2001 From: "sentry-junior[bot]" <264270552+sentry-junior[bot]@users.noreply.github.com> Date: Thu, 26 Nov 2026 11:31:16 +0000 Subject: [PATCH 2/2] ci(release): Tag 3.x Docker images 3 instead of latest 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> --- .craft.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.craft.yml b/.craft.yml index 23d24ef89c..5eab74bcbe 100644 --- a/.craft.yml +++ b/.craft.yml @@ -110,11 +110,12 @@ targets: id: Docker Hub (release) source: ghcr.io/getsentry/sentry-cli target: getsentry/sentry-cli + # getsentry/toolkit pushes v4 as `latest`, so 3.x releases move `3` instead. - name: docker - id: Docker Hub (latest) + id: Docker Hub (3) source: ghcr.io/getsentry/sentry-cli target: getsentry/sentry-cli - targetFormat: '{{{target}}}:latest' + targetFormat: '{{{target}}}:3' requireNames: - /^sentry-cli-Darwin-x86_64$/ - /^sentry-cli-Darwin-arm64$/