Commit a1e2592
ci(build): Add snapshot release workflow (#3212)
## Summary
Adds a `workflow_dispatch`-triggered snapshot release pipeline that
reuses the existing build workflow, enabling on-demand pre-release
builds from any branch. For now we are only publishing to npm under the
snapshot tag.
## Background
We want to allow easy snapshot releases to ease internal testing as well
as customer testing.
### What it does
- **New `snapshot.yml` workflow**: Computes a semver-compliant snapshot
version (e.g. `3.4.0-snapshot.20260312.abc1234`) by bumping the minor
version from `Cargo.toml`, patches all version files via
`scripts/bump-version.sh`, pushes a temporary snapshot branch, then
triggers the build
- **Makes `build.yml` callable**: Adds `workflow_call` inputs
(`skip-signing`, `is-snapshot`, `checkout-ref`) so the snapshot workflow
can reuse the full build matrix
- **Skips unnecessary steps for snapshots**: macOS code
signing/notarization, Python package builds, Docker image builds, and
the release merge job are all conditionally skipped
- **Publishes to npm under `snapshot` tag**: Platform-specific binary
packages and the main `@sentry/cli` package are published with `--tag
snapshot` so they don't affect the `latest` tag
- **Cleans up after itself**: The temporary snapshot branch is deleted
after publishing (or on failure)
🤖 Generated with [Claude Code](https://claude.com/claude-code)
---------
Co-authored-by: Claude Opus 4.6 (1M context) <[email protected]>
Co-authored-by: Daniel Szoke <[email protected]>1 parent 44c3a91 commit a1e2592
2 files changed
+148
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
7 | 15 | | |
8 | 16 | | |
9 | 17 | | |
| |||
32 | 40 | | |
33 | 41 | | |
34 | 42 | | |
| 43 | + | |
| 44 | + | |
35 | 45 | | |
36 | 46 | | |
37 | 47 | | |
| |||
68 | 78 | | |
69 | 79 | | |
70 | 80 | | |
| 81 | + | |
| 82 | + | |
71 | 83 | | |
72 | 84 | | |
73 | 85 | | |
| |||
155 | 167 | | |
156 | 168 | | |
157 | 169 | | |
| 170 | + | |
| 171 | + | |
158 | 172 | | |
159 | 173 | | |
160 | 174 | | |
| |||
219 | 233 | | |
220 | 234 | | |
221 | 235 | | |
| 236 | + | |
| 237 | + | |
222 | 238 | | |
223 | 239 | | |
224 | 240 | | |
| |||
251 | 267 | | |
252 | 268 | | |
253 | 269 | | |
| 270 | + | |
| 271 | + | |
254 | 272 | | |
255 | 273 | | |
256 | 274 | | |
| |||
280 | 298 | | |
281 | 299 | | |
282 | 300 | | |
| 301 | + | |
283 | 302 | | |
284 | 303 | | |
285 | 304 | | |
286 | 305 | | |
| 306 | + | |
| 307 | + | |
287 | 308 | | |
288 | 309 | | |
289 | 310 | | |
| |||
297 | 318 | | |
298 | 319 | | |
299 | 320 | | |
| 321 | + | |
300 | 322 | | |
301 | 323 | | |
302 | 324 | | |
303 | 325 | | |
304 | 326 | | |
| 327 | + | |
| 328 | + | |
305 | 329 | | |
306 | 330 | | |
307 | 331 | | |
| |||
328 | 352 | | |
329 | 353 | | |
330 | 354 | | |
| 355 | + | |
| 356 | + | |
331 | 357 | | |
332 | 358 | | |
333 | 359 | | |
| |||
366 | 392 | | |
367 | 393 | | |
368 | 394 | | |
| 395 | + | |
369 | 396 | | |
370 | 397 | | |
371 | 398 | | |
| |||
380 | 407 | | |
381 | 408 | | |
382 | 409 | | |
| 410 | + | |
| 411 | + | |
383 | 412 | | |
384 | 413 | | |
385 | 414 | | |
| |||
402 | 431 | | |
403 | 432 | | |
404 | 433 | | |
| 434 | + | |
405 | 435 | | |
406 | 436 | | |
407 | 437 | | |
| |||
422 | 452 | | |
423 | 453 | | |
424 | 454 | | |
| 455 | + | |
425 | 456 | | |
426 | 457 | | |
427 | 458 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
0 commit comments