diff --git a/scripts/release.sh b/scripts/release.sh index 24b628b..a9b02a8 100755 --- a/scripts/release.sh +++ b/scripts/release.sh @@ -30,8 +30,13 @@ if [[ "$confirm" != "y" && "$confirm" != "Y" ]]; then exit 0 fi -# Publish to npm -npm publish +# Prompt for OTP +read -p "Enter npm OTP (leave blank if not using 2FA): " otp +if [[ -n "$otp" ]]; then + npm publish --otp "$otp" +else + npm publish +fi # Push git commits and tags git push && git push --tags