Skip to content

Add support for bumping packages on main after release cut#42958

Closed
lunaleaps wants to merge 2 commits into
facebook:mainfrom
lunaleaps:export-D53648688
Closed

Add support for bumping packages on main after release cut#42958
lunaleaps wants to merge 2 commits into
facebook:mainfrom
lunaleaps:export-D53648688

Conversation

@lunaleaps
Copy link
Copy Markdown
Contributor

Summary:
Changelog: [Internal] - Add support to set-version that we can bump the monorepo packages on main

This should be used after we cut a release branch. The release crew should then run

yarn set-version 0.next.0-main --skip-react-native-version

This makes sure we don't update react-native on main branch and keep it at 1000.0.0

This essentially replaces:
yarn bump-all-updated-packages --release-branch-cutoff
in this step: https://reactnative.dev/contributing/release-branch-cut-and-rc0#12-bump-minor-version-of-all-monorepo-packages-in-main

The reason for this change is to consolidate all the places where we update the version to one place, set-version.

Currently we do this in many fragmented places

  • bump-all-updated-packages
  • set-rn-version
  • get-and-update-packages (deleted in the prev diff)

In the future, I want to get rid of skip-react-native-version but we'll need to remove the 1000.0.0 nomenclature. This unblocks us to just use this script for now.

Differential Revision: D53648688

Summary:

Changelog: [Internal] - Update publish-npm to use `set-version` for nightly builds

Now that `set-version` basically does what `set-rn-version` does, this diff uses this logic for nightlies only (as dry-run/pre-alpha variants are non-functional right now)

This does not change the flow of build-type `'release'` -- that will still use `set-rn-version` via CircleCI ([job](https://fburl.com/code/6xo3ijwg), [script](https://fburl.com/code/bo8np0tb))  We will eventually replace that too but that will be later.

This allows us to delete `get-and-update-packages.js` which was a helper written specifically for updating monorepo packages for nightlies.

The purpose of this is to eventually conform all version updates to use `set-version` in all types of releases (nightlies, stable)

Reviewed By: cipolleschi

Differential Revision: D53487874
Summary:
Changelog: [Internal] - Add support to `set-version` that we can bump the monorepo packages on main

This should be used after we cut a release branch. The release crew should then run

`yarn set-version 0.next.0-main --skip-react-native-version`

This makes sure we don't update `react-native` on main branch and keep it at 1000.0.0

This essentially replaces:
`yarn bump-all-updated-packages --release-branch-cutoff`
in this step: https://reactnative.dev/contributing/release-branch-cut-and-rc0#12-bump-minor-version-of-all-monorepo-packages-in-main

The reason for this change is to consolidate all the places where we update the version to one place, set-version.

Currently we do this in many fragmented places
* bump-all-updated-packages
* set-rn-version
* get-and-update-packages (deleted in the prev diff)

In the future, I want to get rid of `skip-react-native-version` but we'll need to remove the `1000.0.0` nomenclature. This unblocks us to just use this script for now.

Differential Revision: D53648688
@facebook-github-bot facebook-github-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 Feb 11, 2024
@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D53648688

@github-actions
Copy link
Copy Markdown

Warnings
⚠️ 🔒 package.json - Changes were made to package.json. This will require a manual import by a Facebook employee.

Generated by 🚫 dangerJS against f566d59

@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request has been merged in 2090fe5.

@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Feb 12, 2024
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. p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants