Luna Wei
0d2c50568f
Add print-packages as a command ( #41959 )
...
Summary:
Working on releases, I'm often looking for the name of our monorepo packages (as sometimes the name doesn't align with the directory) and also getting a list of the versions of everything, as well as if its private/public -- which I've interpreted to mean that we publish it or we don't. I thought this might be convenient to add.
[Internal] - Add `print-packages` as a command to print our monorepo packages (including react-native)
Pull Request resolved: https://github.com/facebook/react-native/pull/41959
Test Plan:
```
❯ yarn print-packages
yarn run v1.22.19
$ node ./scripts/monorepo/print
┌─────────┬─────────┬─────────────────────────────────────────┬────────────────┐
│ (index) │ Public? │ Name │ Version (main) │
├─────────┼─────────┼─────────────────────────────────────────┼────────────────┤
│ 0 │ '✅ ' │ 'react-native/assets-registry' │ '0.74.0' │
│ 1 │ '✅ ' │ 'react-native/babel-plugin-codegen' │ '0.74.0' │
│ 2 │ '✅ ' │ 'react-native/community-cli-plugin' │ '0.74.0' │
│ 3 │ '✅ ' │ 'react-native/debugger-frontend' │ '0.74.0' │
│ 4 │ '✅ ' │ 'react-native/dev-middleware' │ '0.74.0' │
│ 5 │ '✅ ' │ 'react-native/eslint-config' │ '0.74.0' │
│ 6 │ '✅ ' │ 'react-native/eslint-plugin' │ '0.74.0' │
│ 7 │ '✅ ' │ 'react-native/eslint-plugin-specs' │ '0.74.0' │
│ 8 │ '❌ ' │ 'react-native/hermes-inspector-msggen' │ '0.72.0' │
│ 9 │ '✅ ' │ 'react-native/metro-config' │ '0.74.0' │
│ 10 │ '✅ ' │ 'react-native/normalize-colors' │ '0.74.1' │
│ 11 │ '✅ ' │ 'react-native/js-polyfills' │ '0.74.0' │
│ 12 │ '✅ ' │ 'react-native' │ '1000.0.0' │
│ 13 │ '✅ ' │ 'react-native/babel-preset' │ '0.74.0' │
│ 14 │ '✅ ' │ 'react-native/metro-babel-transformer' │ '0.74.0' │
│ 15 │ '❌ ' │ 'react-native/bots' │ '0.0.0' │
│ 16 │ '✅ ' │ 'react-native/codegen' │ '0.74.0' │
│ 17 │ '❌ ' │ 'react-native/codegen-typescript-test' │ '0.0.1' │
│ 18 │ '✅ ' │ 'react-native/gradle-plugin' │ '0.74.0' │
│ 19 │ '❌ ' │ 'react-native/tester' │ '0.0.1' │
│ 20 │ '❌ ' │ 'react-native/tester-e2e' │ '0.0.1' │
│ 21 │ '✅ ' │ 'react-native/typescript-config' │ '0.74.0' │
│ 22 │ '✅ ' │ 'react-native/virtualized-lists' │ '0.74.0' │
└─────────┴─────────┴─────────────────────────────────────────┴────────────────┘
✨ Done in 0.55s.
```
Also added filter flag for private/public
```
❯ yarn print-packages --type private
yarn run v1.22.19
$ node ./scripts/monorepo/print --type private
┌─────────┬─────────┬─────────────────────────────────────────┬────────────────┐
│ (index) │ Public? │ Name │ Version (main) │
├─────────┼─────────┼─────────────────────────────────────────┼────────────────┤
│ 0 │ '❌ ' │ 'react-native/hermes-inspector-msggen' │ '0.72.0' │
│ 1 │ '❌ ' │ 'react-native/bots' │ '0.0.0' │
│ 2 │ '❌ ' │ 'react-native/codegen-typescript-test' │ '0.0.1' │
│ 3 │ '❌ ' │ 'react-native/tester' │ '0.0.1' │
│ 4 │ '❌ ' │ 'react-native/tester-e2e' │ '0.0.1' │
└─────────┴─────────┴─────────────────────────────────────────┴────────────────┘
✨ Done in 0.16s.
```
Also added a npm query where you can see the latest published version of a minor
```
❯ yarn print-packages --type public --minor 72
yarn run v1.22.19
$ node ./scripts/monorepo/print --type public --minor 72
┌─────────┬─────────┬─────────────────────────────────────────┬────────────────┬──────────────────────────────────────┐
│ (index) │ Public? │ Name │ Version (main) │ Version (72) │
├─────────┼─────────┼─────────────────────────────────────────┼────────────────┼──────────────────────────────────────┤
│ 0 │ '✅ ' │ 'react-native/assets-registry' │ '0.74.0' │ '0.72.0' │
│ 1 │ '✅ ' │ 'react-native/babel-plugin-codegen' │ '0.74.0' │ '0.72.3' │
│ 2 │ '✅ ' │ 'react-native/community-cli-plugin' │ '0.74.0' │ 'No match found for version ^0.72.0' │
│ 3 │ '✅ ' │ 'react-native/debugger-frontend' │ '0.74.0' │ 'No match found for version ^0.72.0' │
│ 4 │ '✅ ' │ 'react-native/dev-middleware' │ '0.74.0' │ 'No match found for version ^0.72.0' │
│ 5 │ '✅ ' │ 'react-native/eslint-config' │ '0.74.0' │ '0.72.2' │
│ 6 │ '✅ ' │ 'react-native/eslint-plugin' │ '0.74.0' │ '0.72.0' │
│ 7 │ '✅ ' │ 'react-native/eslint-plugin-specs' │ '0.74.0' │ '0.72.4' │
│ 8 │ '✅ ' │ 'react-native/metro-config' │ '0.74.0' │ '0.72.11' │
│ 9 │ '✅ ' │ 'react-native/normalize-colors' │ '0.74.1' │ '0.72.0' │
│ 10 │ '✅ ' │ 'react-native/js-polyfills' │ '0.74.0' │ '0.72.1' │
│ 11 │ '✅ ' │ 'react-native' │ '1000.0.0' │ '0.72.8' │
│ 12 │ '✅ ' │ 'react-native/babel-preset' │ '0.74.0' │ 'No match found for version ^0.72.0' │
│ 13 │ '✅ ' │ 'react-native/metro-babel-transformer' │ '0.74.0' │ 'No match found for version ^0.72.0' │
│ 14 │ '✅ ' │ 'react-native/codegen' │ '0.74.0' │ '0.72.8' │
│ 15 │ '✅ ' │ 'react-native/gradle-plugin' │ '0.74.0' │ '0.72.11' │
│ 16 │ '✅ ' │ 'react-native/typescript-config' │ '0.74.0' │ 'No match found for version ^0.72.0' │
│ 17 │ '✅ ' │ 'react-native/virtualized-lists' │ '0.74.0' │ '0.72.8' │
└─────────┴─────────┴─────────────────────────────────────────┴────────────────┴──────────────────────────────────────┘
```
Reviewed By: cortinico
Differential Revision: D52347140
Pulled By: lunaleaps
fbshipit-source-id: 75811730e1afd5aae2d9fba4e437cd0d3d424a90
2024-02-04 12:54:18 -08:00
Riccardo Cipolleschi
52104c6ee3
Update nightlies to bump all the packages in the monorepo and transitive dependencies ( #39600 )
...
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/39600
This change will publish all the packages in the monorepo that are not private as during the nightlies, taking also care of keeping the transitive dependencies aligned.
## Changelog:
[Internal] - Bump packages and transitive dependencies when doing nightlies.
Reviewed By: huntie
Differential Revision: D49502330
fbshipit-source-id: 85e2bde13ed2b5dfe33072c9f99f5aaa2c5063ca
2023-09-22 05:02:43 -07:00
Nicola Corti
0c483d309c
Introduce a build_android step ( #38848 )
...
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/38848
In order to parallelize the Android CI, I've moved most of the building to a `build_android` step which executes before the `build_npm_package` step.
As currently, building Hermes for Android is on the critical path, this should reduce much of the execution time on CI.
Changelog:
[Internal] [Changed] - Introduce a build_android step
Reviewed By: mdvacca
Differential Revision: D48148418
fbshipit-source-id: bfe3175fcc11d96e264eb31d8d5555bd1f83c01d
2023-08-10 05:34:13 -07:00
Facebook Community Bot
2eba6ab5ac
Re-sync with internal repository ( #37831 )
...
Co-authored-by: Facebook Community Bot <6422482+facebook-github-bot@users.noreply.github.com >
2023-06-12 17:34:52 -04:00
Luna Wei
fd9e295bef
Publish nightly monorepo packages ( #37556 )
...
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/37556
Changelog: [Internal]
Before making this change, we need to publish `nightly` versions of all existing monorepo dependencies.
Reviewed By: hoxyq
Differential Revision: D46117197
fbshipit-source-id: bcf6364e068579e63ca19e8161dcd32de4353e56
2023-06-02 17:40:52 -07:00
Luna Wei
7819fef988
Refactor to npm-utils ( #37555 )
...
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/37555
Changelog: [Internal] Refactor some npm commands and centralize in npm-utils.
For now, centralize `getPackageVersionStrByTag` and `publishPackage` and update:
1. `publish-npm` to use utilities. This is how we publish `react-native` for commitlies, releases, and nightlies
2. Update `find-and-publish-all-bumped-packages.js` where we publish our monorepo dependencies
Reviewed By: cortinico, hoxyq
Differential Revision: D46131120
fbshipit-source-id: e6020058eb94b4f8d95068b8cd87cc765711be5b
2023-05-24 14:42:54 -07:00