Skip to content
This repository was archived by the owner on Jun 24, 2025. It is now read-only.

Commit 715a952

Browse files
committed
build: Remove auth if token not provided
1 parent d095787 commit 715a952

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

bin/release.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,9 @@ if [[ $TAG == *"beta"* ]]; then
6565
EXTRA=--prerelease
6666
fi
6767

68-
echo "$GITHUB_CLI_AUTH_TOKEN" | gh auth login --with-token
68+
if [ ! -z "$GITHUB_CLI_AUTH_TOKEN" ]; then
69+
echo "$GITHUB_CLI_AUTH_TOKEN" | gh auth login --with-token
70+
fi
6971

7072
gh release create "$TAG" \
7173
--title "$TAG release" \

0 commit comments

Comments
 (0)