Skip to content

Commit bf0b5e2

Browse files
committedOct 25, 2018
Prompt for 2fa auth code
1 parent 6513c2d commit bf0b5e2

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed
 

‎tasks/publish.sh

+6-1
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,10 @@ fi
3535
cd packages/react-error-overlay/
3636
npm run build:prod
3737
cd ../..
38+
39+
# Get 2FA
40+
echo "Please enter npm two-factor auth code: "
41+
read otp
42+
3843
# Go!
39-
./node_modules/.bin/lerna publish --independent --npm-client=npm "$@"
44+
NPM_CONFIG_OTP=$otp ./node_modules/.bin/lerna publish --independent --npm-client=npm "$@"

0 commit comments

Comments
 (0)