react/scripts/release/shared-commands
Andrew Clark bf3a29d097
Update build script to automatically generate RCs (#29736)
RC releases are a special kind of prerelease build because unlike
canaries we shouldn't publish new RCs from any commit on `main`, only
when we intentionally bump the RC number. But they are still prerelases
— like canary and experimental releases, they should use exact version
numbers in their dependencies (no ^).

We only need to generate these builds during the RC phase, i.e. when the
canary channel label is set to "rc".

Example of resulting package.json output:

```json
{
  "name": "react-dom",
  "version": "19.0.0-rc.0",
  "dependencies": {
    "scheduler": "0.25.0-rc.0"
  },
  "peerDependencies": {
    "react": "19.0.0-rc.0"
  }
}
```


https://react-builds.vercel.app/prs/29736/files/oss-stable-rc/react-dom/package.json
2024-06-03 12:21:21 -04:00
..
download-build-artifacts.js Update build script to automatically generate RCs (#29736) 2024-06-03 12:21:21 -04:00
get-build-id-for-commit.js Fix download-build script (#25493) 2022-10-16 19:17:07 -04:00
parse-params.js Update build script to automatically generate RCs (#29736) 2024-06-03 12:21:21 -04:00
print-prerelease-summary.js Updated release script documentation and command names (#17929) 2020-02-05 08:52:31 -08:00
test-packaging-fixture.js Upgrade prettier (#26081) 2023-01-31 08:25:05 -05:00