mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
5f60ad65ca
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
32 lines
1.2 KiB
Markdown
32 lines
1.2 KiB
Markdown
# scripts/releases
|
|
|
|
Scripts related to creating a React Native release. These are the lower level entry points used by [**scripts/releases-ci**](https://github.com/facebook/react-native/tree/main/scripts/releases-ci).
|
|
|
|
## Commands
|
|
|
|
For information on command arguments, run `node <command> --help`.
|
|
|
|
### `create-release-commit`
|
|
|
|
Creates a release commit to trigger a new release.
|
|
|
|
### `remove-new-arch-flags`
|
|
|
|
Updates native build files to disable the New Architecture.
|
|
|
|
### `set-version`
|
|
|
|
Bump the version of all packages.
|
|
|
|
- Updates `package.json` metadata for all workspaces and the project root.
|
|
- Updates relevant native files in the `react-native` package.
|
|
|
|
If `--skipReactNativeVersion` is passed, the `react-native` package version will be left unmodified as `"1000.0.0"` (special static version on `main`), and native files will not be touched.
|
|
|
|
### `set-rn-artifacts-version`
|
|
|
|
> [!Note]
|
|
> **Deprecated**: Prefer `set-version`. This entry point is a subset of `set-version`, and is used only by test workflows. We will replace these call sites in future.
|
|
|
|
Updates relevant native files in the `react-native` package to materialize the given release version. This is run by `set-version` unless `--skipReactNativeVersion` is passed.
|