Commit 76c37f8
Add release-hermes-for-branch-cut.js script (facebook#55903)
Summary:
Pull Request resolved: facebook#55903
Changelog: [Internal]
This script automates the full Hermes release workflow during React Native branch cuts. It handles:
1. Validating the environment (must be on a stable branch, no uncommitted changes)
2. Cloning/setting up the Hermes repo at ~/git/hermes if needed
3. Fetching Hermes versions from main and 250829098.0.0-stable branches
4. Creating a release branch (release-v{version}) in Hermes
5. Triggering GitHub Actions workflows to build Hermes
6. Updating RN repo with Hermes versions (.hermesversion, .hermesv1version, version.properties, package.json dependencies)
7. Creating PRs to bump Hermes versions for the next release
8. Creating a PR to bump HERMES_V1_VERSION_NAME on RN main
Features:
- Interactive prompts for confirmation at key steps
- --dry-run flag to preview all actions without making changes
- Clear output with emoji indicators for each step
- Reminder not to push RN release branch until workflows complete
Usage:
./packages/react-native/scripts/hermes/release-hermes-for-branch-cut.js
./packages/react-native/scripts/hermes/release-hermes-for-branch-cut.js --dry-run
Reviewed By: cipolleschi
Differential Revision: D95195362
fbshipit-source-id: 6008c5fd9abaf0c7b49abc7b2cc56cfc358507ce1 parent 8c89923 commit 76c37f8
File tree
1 file changed
+464
-0
lines changed- packages/react-native/scripts/hermes
1 file changed
+464
-0
lines changed
0 commit comments