Commit a0ded19
authored
ci: use production environment for sentry-release auth token (#645)
## Summary
Fixes the [second sentry-release
failure](https://github.com/getsentry/cli/actions/runs/23917846862/job/69756252213):
```
Error: Not authenticated. Run 'sentry auth login' first.
```
Two issues:
1. **Missing environment** — `SENTRY_AUTH_TOKEN` is scoped to the
`production` environment. Without `environment: production` on the job,
the secret resolves to empty.
2. **Wrong release version** — The workflow used `sentry/${VERSION}`
(e.g., `sentry/0.24.0`) but `Sentry.init()` and sourcemap uploads both
use bare semver (`0.24.0`). Events would never be associated with the
release.
## Changes
- Add `environment: production` to the `finalize` job
- Drop `sentry/` prefix from all release version references to match
`Sentry.init()` (`release: CLI_VERSION` in `telemetry.ts:417`) and
sourcemap uploads (`release: VERSION` in `build.ts:179`)1 parent 38818d0 commit a0ded19
1 file changed
Lines changed: 6 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
26 | | - | |
| 27 | + | |
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
| |||
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
38 | | - | |
| 39 | + | |
39 | 40 | | |
40 | 41 | | |
41 | 42 | | |
42 | | - | |
| 43 | + | |
43 | 44 | | |
44 | 45 | | |
45 | | - | |
| 46 | + | |
46 | 47 | | |
47 | 48 | | |
48 | | - | |
| 49 | + | |
49 | 50 | | |
50 | 51 | | |
51 | 52 | | |
| |||
0 commit comments