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

Commit c9208bf

Browse files
authored
Added check for github token to release script
1 parent 7cac0f9 commit c9208bf

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

release-version.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ if [ -z "$1" ]; then
88
exit 1
99
fi
1010

11+
if [ -z "$GITHUB_TOKEN" ]; then
12+
echo "Please set the GITHUB_TOKEN variable to release a new version"
13+
exit 1
14+
fi
15+
1116
read -r -p "Create a new tag for version $1, push it, and build a release? [y/N] " response
1217
case "$response" in
1318
[yY][eE][sS]|[yY])

0 commit comments

Comments
 (0)