Skip to content

Commit f930abc

Browse files
authored
ci: restore sentry/ org prefix in sentry-release workflow (#648)
## Summary Fixes the [third sentry-release failure](https://github.com/getsentry/cli/actions/runs/23918696701/job/69759189495): ``` Error: Organization is required. ``` The previous PR (#645) mistakenly removed the `sentry/` prefix thinking it was a version prefix. It's actually the **org slug** — `parseReleaseArg("sentry/0.24.0")` splits into org=`sentry`, version=`0.24.0`. Restoring it provides the org without needing `SENTRY_ORG`. Fixes #647.
1 parent a0ded19 commit f930abc

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/sentry-release.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
env:
2525
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
2626
# Tag names are bare semver (e.g., "0.24.0", no "v" prefix),
27-
# matching the npm package version, Sentry.init() release, and sourcemap uploads.
27+
# matching both the npm package version and Sentry release version.
2828
VERSION: ${{ github.event.release.tag_name || inputs.version }}
2929
steps:
3030
- name: Setup Node.js
@@ -36,17 +36,17 @@ jobs:
3636
run: npm install -g "sentry@${VERSION}"
3737

3838
- name: Create release
39-
run: sentry release create "${VERSION}" --project cli
39+
run: sentry release create "sentry/${VERSION}" --project cli
4040

4141
- name: Set commits
4242
continue-on-error: true
43-
run: sentry release set-commits "${VERSION}" --auto
43+
run: sentry release set-commits "sentry/${VERSION}" --auto
4444

4545
- name: Finalize release
46-
run: sentry release finalize "${VERSION}"
46+
run: sentry release finalize "sentry/${VERSION}"
4747

4848
- name: Create deploy
49-
run: sentry release deploy "${VERSION}" production
49+
run: sentry release deploy "sentry/${VERSION}" production
5050

5151
- name: File issue on failure
5252
if: failure()

0 commit comments

Comments
 (0)