Skip to content

Commit 4e07f55

Browse files
author
Austin Green
committed
Use github.token config for auth
1 parent 36788f0 commit 4e07f55

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

utils/scripts/version.sh

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
11
#!/bin/sh
22

3-
set -e
3+
# Set auth variable for lerna-changelog and github-release.js
4+
GITHUB_AUTH=$(git config github.token)
45

5-
if [[ -z "$GITHUB_AUTH" ]]; then
6-
echo "ERROR: Must provide GITHUB_AUTH token in environment"
6+
if [[ -z $GITHUB_AUTH ]]; then
7+
echo "ERROR: Must provide 'github.token' in git configuration"
78
exit 1
89
fi
910

11+
# Exit on error
12+
set -e
13+
1014
echo "INFO: Pulling recent changes..."
1115
git pull
1216

0 commit comments

Comments
 (0)