We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a3101fb commit 19d1d55Copy full SHA for 19d1d55
tasks/publish.sh
@@ -36,9 +36,12 @@ cd packages/react-error-overlay/
36
npm run build:prod
37
cd ../..
38
39
-# Get 2FA
40
-echo "Please enter npm two-factor auth code: "
41
-read otp
+# Get 2FA when not CI
+otp=""
+if [ -z $CI ]; then
42
+ echo "Please enter npm two-factor auth code: "
43
+ read otp
44
+fi
45
46
# Go!
-NPM_CONFIG_OTP=$otp ./node_modules/.bin/lerna publish --independent --npm-client=npm "$@"
47
+NPM_CONFIG_OTP="$otp" ./node_modules/.bin/lerna publish --independent --npm-client=npm "$@"
0 commit comments