mirror of
https://github.com/zhigang1992/create-react-app.git
synced 2026-04-29 09:55:43 +08:00
Prompt for 2fa auth code
This commit is contained in:
@@ -35,5 +35,10 @@ fi
|
|||||||
cd packages/react-error-overlay/
|
cd packages/react-error-overlay/
|
||||||
npm run build:prod
|
npm run build:prod
|
||||||
cd ../..
|
cd ../..
|
||||||
|
|
||||||
|
# Get 2FA
|
||||||
|
echo "Please enter npm two-factor auth code: "
|
||||||
|
read otp
|
||||||
|
|
||||||
# Go!
|
# 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