react-native/scripts/releases
Nicola Corti 7e268c9d52 Revert React 19RC to React 18.3.1 (#47380)
Summary:
While we're waiting for 19 stable, let's bring main back to 18.3.1 ahead of the 0.77 branch cut. We'll land this change just after 19 stable lands.

This is a cherry pick of b93b378fa0 which landed in 0.76 already

bypass-github-export-checks

## Changelog:

[INTERNAL] - Revert React 19RC to React 18.3.1

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

Test Plan: CI

Reviewed By: cipolleschi

Differential Revision: D65430775

Pulled By: cortinico

fbshipit-source-id: f0f211754c8ffe5d037fd299e4de52c29d1d7913
2024-11-08 08:27:37 -08:00
..
__tests__ Revert React 19RC to React 18.3.1 (#47380) 2024-11-08 08:27:37 -08:00
templates Rename set-rn-version script, mark as deprecated (#45184) 2024-06-26 10:14:12 -07:00
utils Fix wrong command for publishing of external-artifacts (#46417) 2024-09-10 07:11:42 -07:00
create-release-commit.js Move all package.json updates into set-version script (#45180) 2024-06-26 07:59:49 -07:00
README.md Rename set-rn-version script, mark as deprecated (#45184) 2024-06-26 10:14:12 -07:00
remove-new-arch-flags.js Remove references to old template (#46082) 2024-08-19 09:19:35 -07:00
set-rn-artifacts-version.js Rename set-rn-version script, mark as deprecated (#45184) 2024-06-26 10:14:12 -07:00
set-version.js Rename set-rn-version script, mark as deprecated (#45184) 2024-06-26 10:14:12 -07:00

scripts/releases

Scripts related to creating a React Native release. These are the lower level entry points used by 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.