mirror of
https://github.com/bendtherules/opencode-multi-model.git
synced 2026-08-18 13:42:21 +00:00
fix: add OTP prompt for npm publish to enhance security
This commit is contained in:
+6
-1
@@ -30,8 +30,13 @@ if [[ "$confirm" != "y" && "$confirm" != "Y" ]]; then
|
|||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Publish to npm
|
# 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
|
npm publish
|
||||||
|
fi
|
||||||
|
|
||||||
# Push git commits and tags
|
# Push git commits and tags
|
||||||
git push && git push --tags
|
git push && git push --tags
|
||||||
|
|||||||
Reference in New Issue
Block a user