From 32931b19b1f83081dd9e1085ff0add922630f81b Mon Sep 17 00:00:00 2001 From: Lorenzo Sciandra Date: Fri, 4 Nov 2022 13:14:37 +0000 Subject: [PATCH] [LOCAL] better fix for param --- .circleci/config.yml | 2 +- scripts/publish-npm.js | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 4008f06856c0df..f118f1ed222a6f 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1445,7 +1445,7 @@ jobs: echo "machine github.com login react-native-bot password $GITHUB_TOKEN" > ~/.netrc # END: Stables and nightlies - - run: node ./scripts/publish-npm.js + - run: node ./scripts/publish-npm.js --<< parameters.release_type >> - run: name: Zip Hermes Native Symbols command: zip -r /tmp/hermes-native-symbols.zip ~/react-native/ReactAndroid/hermes-engine/build/intermediates/cmake/ diff --git a/scripts/publish-npm.js b/scripts/publish-npm.js index 4b9821b37c8570..5cfe65afaaf03f 100755 --- a/scripts/publish-npm.js +++ b/scripts/publish-npm.js @@ -65,6 +65,11 @@ const argv = yargs type: 'boolean', default: false, }) + .option('r', { + alias: 'release', // useless but needed for CI + type: 'boolean', + default: false, + }) .strict().argv; const nightlyBuild = argv.nightly; const dryRunBuild = argv.dryRun;