Skip to content

Commit

Permalink
fix(build): add github credentials (#225)
Browse files Browse the repository at this point in the history
  • Loading branch information
cal-smith committed Mar 26, 2019
1 parent bdbe0ca commit 118196a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions scripts/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,14 @@ npm run build-all
# adding package-lock.json to every package after npm install
rm -rf **/package-lock.json

# Git user info configs
git config --global user.email "carbon@us.ibm.com"
git config --global user.name "carbon-bot"

# Add github token to git credentials
git config credential.helper "store --file=.git/credentials"
echo "https://${GH_TOKEN}:@github.com" > .git/credentials 2>/dev/null

# checkout master to get out of detached HEAD state
git checkout master

Expand Down

0 comments on commit 118196a

Please sign in to comment.