Prompt for 2fa auth code

This commit is contained in:
Joe Haddad
2018-10-25 00:44:38 -07:00
parent 6513c2d300
commit bf0b5e221d

View File

@@ -35,5 +35,10 @@ fi
cd packages/react-error-overlay/
npm run build:prod
cd ../..
# Get 2FA
echo "Please enter npm two-factor auth code: "
read otp
# Go!
./node_modules/.bin/lerna publish --independent --npm-client=npm "$@"
NPM_CONFIG_OTP=$otp ./node_modules/.bin/lerna publish --independent --npm-client=npm "$@"