Files
react-native/scripts/releases-ci
Riccardo Cipolleschi f45518f691 Use the right package.json when comparing react-native's versions (#54495)
Summary:
This is a port back in main of the commit a0e40ec09f we landed in the 0.83-stable branch to fix the release process of React Native.

## Changelog:
[Internal] -

Pull Request resolved: https://github.com/facebook/react-native/pull/54495

Test Plan: GHA + tested while doing the release

Reviewed By: huntie

Differential Revision: D86766812

Pulled By: cipolleschi

fbshipit-source-id: 0e5664b3ceed32fd05fdfe3fca1bffead9d3eae1
2025-11-11 08:15:15 -08:00
..

scripts/releases-ci

CI-only release scripts — intended to run from a CI workflow (GitHub Actions).

Commands

For information on command arguments, run node <command> --help.

prepare-package-for-release

Prepares files within the react-native package and template for the target release version. Writes a new commit and tag, which will trigger publish-npm.js in a new workflow.

publish-npm

Prepares release artifacts and publishes the react-native package to npm.

publish-updated-packages

Publishes all updated packages (excluding react-native) to npm. Triggered when a commit on a release branch contains #publish-packages-to-npm.