Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: update executor for packages publishing workflow #36146

Closed
wants to merge 1 commit into from

Conversation

hoxyq
Copy link
Contributor

@hoxyq hoxyq commented Feb 14, 2023

Summary:
Changelog: [Internal]

  • While working on 0.71.3, it was discovered that react-native-codegen package is being published almost empty (without lib folder)
  • The reason for it is that prepare script is not being executed
  • The main reason for it is npm v6, which requires adding unsafe-perm flag for it: https://www.vinayraghu.com/blog/npm-unsafe-perm
  • Instead of using this flag, changing executor to nodelts, which has node v18 and npm v8
  • Also adding run_yarn before running the script, because react-native/codegen uses external dependencies (such as rimraf) for its build scripts

Differential Revision: D43248175

Summary:
Changelog: [Internal]

- While working on 0.71.3, it was discovered that `react-native-codegen` package is being published almost empty (without `lib` folder)
- The reason for it is that `prepare` script is not being executed
- The main reason for it is npm v6, which requires adding `unsafe-perm` flag for it: https://www.vinayraghu.com/blog/npm-unsafe-perm
- Instead of using this flag, changing executor to `nodelts`, which has node v18 and npm v8
- Also adding `run_yarn` before running the script, because `react-native/codegen` uses external dependencies (such as rimraf) for its build scripts

Differential Revision: D43248175

fbshipit-source-id: ea696aae5b75cb284db380d2040e678bb24a0eb4
@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. p: Facebook Partner: Facebook Partner fb-exported labels Feb 14, 2023
@facebook-github-bot
Copy link
Contributor

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

@analysis-bot
Copy link

Platform Engine Arch Size (bytes) Diff
android hermes arm64-v8a 8,482,003 +0
android hermes armeabi-v7a 7,802,717 +0
android hermes x86 8,957,886 +0
android hermes x86_64 8,815,678 +0
android jsc arm64-v8a 6,699,043 +0
android jsc armeabi-v7a 7,490,565 +0
android jsc x86 9,223,646 +0
android jsc x86_64 6,924,387 +0

Base commit: 31ac1f8
Branch: main

@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Feb 14, 2023
@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 28d8f25.

OlimpiaZurek pushed a commit to OlimpiaZurek/react-native that referenced this pull request May 22, 2023
Summary:
Pull Request resolved: facebook#36146

Changelog: [Internal]

- While working on 0.71.3, it was discovered that `react-native-codegen` package is being published almost empty (without `lib` folder)
- The reason for it is that `prepare` script is not being executed
- The main reason for it is npm v6, which requires adding `unsafe-perm` flag for it: https://www.vinayraghu.com/blog/npm-unsafe-perm
- Instead of using this flag, changing executor to `nodelts`, which has node v18 and npm v8
- Also adding `run_yarn` before running the script, because `react-native/codegen` uses external dependencies (such as rimraf) for its build scripts

Reviewed By: cipolleschi

Differential Revision: D43248175

fbshipit-source-id: d12b93decbf408713e309fe8be75d8d5ec994868
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.

4 participants