Skip to content

Commit bcce38b

Browse files
committed
ci: don't ask for OTP when token is set
1 parent ba11bb4 commit bcce38b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scripts/npm-publish.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ echo "Building all packages..."
55
pnpm nx reset
66
pnpm build
77

8-
read -p "Enter NPM OTP: " OTP
8+
if [ -z "$NPM_TOKEN" ]; then
9+
read -p "Enter NPM OTP: " OTP
10+
fi
911

1012
echo "NPM: Publishing all packages"
1113
# If NPM_TOKEN is set (CI environment), use it

0 commit comments

Comments
 (0)