|
@@ -35,22 +35,6 @@ if ! npm whoami > /dev/null; then
|
|
|
exit 1
|
|
|
fi
|
|
|
|
|
|
-if ! which jq; then
|
|
|
- echo "https://stedolan.github.io/jq/ needs to be installed and available in PATH to do a release."
|
|
|
- exit 1
|
|
|
-fi
|
|
|
-
|
|
|
-perm="$(npm profile get --json | jq .tfa.mode? -r)"
|
|
|
-if [ "$perm" == "auth-and-writes" ]; then
|
|
|
- echo "Two-factor auth is enabled for publishing. This doesn't work well with lerna."
|
|
|
- echo "Temporarily switch to authentication-only 2FA using the link below:"
|
|
|
- echo ""
|
|
|
- echo "https://www.npmjs.com/settings/$(npm whoami)/tfa"
|
|
|
- echo ""
|
|
|
- echo "You can re-enable 2FA for publishing using the same link after this release is complete."
|
|
|
- exit 1
|
|
|
-fi
|
|
|
-
|
|
|
set -o xtrace
|
|
|
|
|
|
# Update README before publishing `uppy`
|