| 1 | # Releasing DevTools |
| 2 | |
| 3 | To release DevTools, do the following steps (in order): |
| 4 | 1. [Prepare a release](#prepare-a-release) |
| 5 | 2. [Build and test a release](#build-and-test-a-release) |
| 6 | 3. [Publish a release](#publish-a-release) |
| 7 | |
| 8 | Each of the scripts can be run with a `--dry` flag to test without committing or publishing any changes. |
| 9 | |
| 10 | ### Prepare a release |
| 11 | To increment version numbers and update the [CHANGELOG](https://github.com/facebook/react/blob/main/packages/react-devtools/CHANGELOG.md), run the `prepare-release` script: |
| 12 | ```sh |
| 13 | ./prepare-release.js |
| 14 | ``` |
| 15 | |
| 16 | You'll need to follow the instructions at the end of the script to push the committed changes to the main fork on GitHub. |
| 17 | |
| 18 | ### Build and test a release |
| 19 | To build and test a release, run the `build-and-test` script: |
| 20 | ```sh |
| 21 | ./build-and-test.js |
| 22 | ``` |
| 23 | |
| 24 | ### Publish a release |
| 25 | To publish a release to NPM, run the `publish-release` script: |
| 26 | ```sh |
| 27 | ./publish-release.js |
| 28 | ``` |
| 29 | |
| 30 | You'll need to follow the instructions at the end of the script to upload the extension to Chrome, Edge, and Firefox stores. |