This document outlines the process for creating a new release of React Native DevTools.
The easiest way to create a new release is to use our automated script:
pnpm run release
This interactive script will:
- Prompt you to select a version bump type (patch, minor, major, or custom)
- Update the version in package.json
- Ask for release notes
- Commit and push the changes
- Create and push a git tag
- Monitor the GitHub Actions workflow
- Automatically publish the release when complete
If you need to perform the release manually, follow these steps:
- Update the version in
package.json
:
{
"version": "x.y.z",
...
}
- Commit your changes:
git add package.json
git commit -m "Bump version to x.y.z"
- Create and push a new tag:
git tag -a vx.y.z -m "Version x.y.z"
git push origin vx.y.z
-
The GitHub Actions workflow will automatically:
- Build the app for macOS
- Create a draft release with all the built installers
- Add the release notes
-
Go to the GitHub Releases page, review the draft release, add any additional notes, and publish it.
If you want to build the app locally without publishing:
pnpm run pack
This will:
- Build the app
- Create installation packages
- Copy them to your Desktop in a "release rn better tools" folder
Before creating a new release tag, make sure to:
- Test the app thoroughly on your local machine
- Run
pnpm run make
locally to ensure the build process completes without errors - Test the generated installers
If the GitHub Actions build fails:
- Check the workflow logs for errors
- Make sure the repository has the necessary secrets and permissions set up
- Try running the build locally to isolate the issue
The app includes auto-update functionality. When a new release is published:
- Existing users will be automatically notified of the update
- The update will be downloaded in the background
- The update will be installed when the user restarts the app
See GITHUB_RELEASE.md for more details on the auto-update configuration.