From 411491e2c09242881ff686f68f33db4fdc967d2d Mon Sep 17 00:00:00 2001 From: Ruslan Lesiutin Date: Tue, 14 Feb 2023 04:18:13 -0800 Subject: [PATCH] fix: update executor for packages publishing workflow 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 --- .circleci/config.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index d6a04aa3fdd..b7c3d002e4d 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1547,9 +1547,10 @@ jobs: echo "Nightly build run" find_and_publish_bumped_packages: - executor: reactnativeandroid + executor: nodelts steps: - checkout + - run_yarn - run: name: Set NPM auth token command: echo "//registry.npmjs.org/:_authToken=${CIRCLE_NPM_TOKEN}" > ~/.npmrc