Commit 31d7a34
ci: derive npm dist-tag from prerelease label
`npm publish` fails on a prerelease version unless `--tag` is given,
otherwise it would silently land on `latest`. Parse the prerelease
label out of the release tag (4.0.0-beta.1 -> beta, 4.0.0-rc.1 -> rc)
and pass it through; stable releases keep the default `latest`.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent cb6ce7c commit 31d7a34
1 file changed
Lines changed: 9 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
0 commit comments