-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: fix git user/email in publish (#40)
- Loading branch information
1 parent
b7a33b0
commit 1ce6870
Showing
1 changed file
with
5 additions
and
8 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 |
---|---|---|
|
@@ -3,10 +3,12 @@ | |
set -eu | ||
|
||
# set the git author and email | ||
GIT_AUTHOR_EMAIL=${GIT_AUTHOR_EMAIL:-"[email protected]"} | ||
GIT_COMMITTER_EMAIL=${GIT_COMMITTER_EMAIL:-$GIT_AUTHOR_EMAIL} | ||
GIT_AUTHOR_NAME=${GIT_AUTHOR_NAME:="aM Open Source"} | ||
GIT_COMMITTER_NAME=${GIT_COMMITTER_NAME:-$GIT_AUTHOR_NAME} | ||
GIT_AUTHOR_EMAIL=${GIT_AUTHOR_EMAIL:-"[email protected]"} | ||
|
||
# set git user | ||
git config user.name $GIT_AUTHOR_NAME | ||
git config user.email $GIT_AUTHOR_EMAIL | ||
|
||
# install yarn assets | ||
yarn install --frozen-lockfile | ||
|
@@ -39,10 +41,5 @@ yarn run release | |
|
||
# determine if we are running in ci | ||
if ! test -z "${CI:-}"; then | ||
GIT_AUTHOR_NAME=$GIT_AUTHOR_NAME \ | ||
GIT_AUTHOR_EMAIL=$GIT_AUTHOR_EMAIL \ | ||
EMAIL=$GIT_AUTHOR_EMAIL \ | ||
GIT_COMMITTER_NAME=$GIT_COMMITTER_EMAIL \ | ||
GIT_COMMITTER_EMAIL=$GIT_COMMITTER_EMAIL \ | ||
git push --follow-tags origin master | ||
fi |