turborepo/scripts
Chris Olszewski b0bb0afba6
feat(release): allow for overriding npm dist tag (#9899)
### Description

Npm requires all published versions to have a dist tag. If we want to
backport a fix we don't want to release this under the `latest` or
`canary` tag. Instead we should release it under a `v${SPECIFIC_MINOR}`
tag if we want to cut another patch under an old version (or
`v${SPECIFIC_MAJOR}` for a minor release for a previous major)

This updates what we write to `version.txt` which is what gets used for
our [NPM
publish](https://github.com/vercel/turborepo/blob/main/cli/Makefile#L2).

### Testing Instructions

[`prepatch` release without an
override](3667901443 (step):5:12)
[`prepatch` release with an
override](3667903266 (step):5:12)
2025-02-04 20:58:28 +00:00
..
server.js Move http cache writing to cacheitem. (#4919) 2023-05-17 11:21:13 -07:00
update-examples-dep.sh ci(examples): update version in examples on release (#9823) 2025-01-27 22:48:43 +00:00
version.js feat(release): allow for overriding npm dist tag (#9899) 2025-02-04 20:58:28 +00:00