Skip to content

Commit

Permalink
Merge pull request #1798 from tinacms/bug/check-for-env-var-when-rele…
Browse files Browse the repository at this point in the history
…asing

fix: Check for $GH_TOKEN when releasing
  • Loading branch information
dwalkr authored Apr 16, 2021
2 parents 40f84e3 + c8c8fc9 commit 5341ee8
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions scripts/prerelease.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
#!/bin/bash

# Check for $GH_TOKEN
if [[ -z $GH_TOKEN ]]
then
echo "ENV '\$GH_TOKEN' is required to proceed; learn more at https://github.com/lerna/lerna/blob/main/commands/version/README.md#--create-release-type"
exit 1
fi

# Terminate after the first line that fails (returns nonzero exit code)
set -e

Expand Down
7 changes: 7 additions & 0 deletions scripts/release.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
#!/bin/bash

# Check for $GH_TOKEN
if [[ -z $GH_TOKEN ]]
then
echo "ENV '\$GH_TOKEN' is required to proceed; learn more at https://github.com/lerna/lerna/blob/main/commands/version/README.md#--create-release-type"
exit 1
fi

# Terminate after the first line that fails (returns nonzero exit code)
set -e

Expand Down

0 comments on commit 5341ee8

Please sign in to comment.