Skip to content

Commit

Permalink
Prompt for 2fa auth code
Browse files Browse the repository at this point in the history
  • Loading branch information
Timer committed Oct 25, 2018
1 parent 6513c2d commit bf0b5e2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tasks/publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 "$@"

0 comments on commit bf0b5e2

Please sign in to comment.