Skip to content

Add release-hermes-for-branch-cut.js script#55903

Closed
fabriziocucci wants to merge 1 commit intofacebook:mainfrom
fabriziocucci:export-D95195362
Closed

Add release-hermes-for-branch-cut.js script#55903
fabriziocucci wants to merge 1 commit intofacebook:mainfrom
fabriziocucci:export-D95195362

Conversation

@fabriziocucci
Copy link
Copy Markdown
Contributor

Summary:
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

Summary:
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
@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Mar 4, 2026
@meta-codesync
Copy link
Copy Markdown

meta-codesync Bot commented Mar 4, 2026

@fabriziocucci has exported this pull request. If you are a Meta employee, you can view the originating Diff in D95195362.

@meta-codesync
Copy link
Copy Markdown

meta-codesync Bot commented Mar 4, 2026

This pull request has been merged in 6918b70.

@react-native-bot
Copy link
Copy Markdown
Collaborator

This pull request was successfully merged by @fabriziocucci in 6918b70

When will my fix make it into a release? | How to file a pick request?

zoontek pushed a commit to zoontek/react-native that referenced this pull request Mar 9, 2026
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: 6008c5fd9abaf0c7b49abc7b2cc56cfc358507ce
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported Merged This PR has been merged. meta-exported p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants