Skip to content

Commit 118196a

Browse files
authored
fix(build): add github credentials (#225)
1 parent bdbe0ca commit 118196a

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

scripts/deploy.sh

+8
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,14 @@ npm run build-all
88
# adding package-lock.json to every package after npm install
99
rm -rf **/package-lock.json
1010

11+
# Git user info configs
12+
git config --global user.email "[email protected]"
13+
git config --global user.name "carbon-bot"
14+
15+
# Add github token to git credentials
16+
git config credential.helper "store --file=.git/credentials"
17+
echo "https://${GH_TOKEN}:@github.com" > .git/credentials 2>/dev/null
18+
1119
# checkout master to get out of detached HEAD state
1220
git checkout master
1321

0 commit comments

Comments
 (0)