-
Notifications
You must be signed in to change notification settings - Fork 185
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(build): add github credentials (#225)
- Loading branch information
Showing
1 changed file
with
8 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 "[email protected]" | ||
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 | ||
|
||
|