Skip to content

Commit

Permalink
Check GITHUB_TOKEN
Browse files Browse the repository at this point in the history
  • Loading branch information
louischan-oursky committed Aug 1, 2019
1 parent b0ebc1c commit cf6e26d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,5 +60,5 @@ $ npm run prepare-new-release
# It will be prepended to CHANGELOG.md
# So make sure the style is consistent.
$ vim new-release
$ GIT_USER=<github-username> GIT_BRANCH=nextwip SKYGEAR_VERSION=<new-version> ./scripts/release.sh
$ GIT_USER=<github-username> GITHUB_TOKEN=<github-token> GIT_BRANCH=nextwip SKYGEAR_VERSION=<new-version> ./scripts/release.sh
```
5 changes: 5 additions & 0 deletions scripts/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ if [ -z "$GIT_BRANCH" ]; then
exit 1
fi

if [ -z "$GITHUB_TOKEN" ]; then
>&2 echo "GITHUB_TOKEN is required."
exit 1
fi

if [ -z "$SKYGEAR_VERSION" ]; then
>&2 echo "SKYGEAR_VERSION is required."
exit 1
Expand Down

0 comments on commit cf6e26d

Please sign in to comment.