mirror of
https://github.com/zhigang1992/create-react-app.git
synced 2026-01-12 22:46:30 +08:00
Prompt for 2fa auth code
This commit is contained in:
@@ -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 "$@"
|
||||
|
||||
Reference in New Issue
Block a user