mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/45184 This is a follow-up to D59055522. > NOTE:This diff will be followed up by a merge of the set-rn-version script into set-version. (I had considered a rename to version-rn-artifacts, intentionally keeping this script separate and distinct from a future [lerna version + this script] setup — however the current UX and confusion with this naming would be too confusing. It can move into a util 👍🏻.) - Rename `set-rn-version` to `set-rn-artifacts-version` (more accurate). - Mark this script as deprecated. - For now, there are too many references to this script in CI test jobs to refactor away this entry point, so I am avoiding this — these should later be standardised to `set-version`. Changelog: [Internal] Reviewed By: christophpurrer Differential Revision: D59058085 fbshipit-source-id: 4123ac73b5c7a2e07a1d1b6da61e0ad94fc31f84
scripts/releases-ci
CI-only release scripts — intended to run from a CI workflow (CircleCI or 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.