Skip to content

Commit ee5aaca

Browse files
author
Ray Schamp
committed
Set git committer single-use vars
/ht @cwillisf
1 parent fb5e97d commit ee5aaca

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

.travis.yml

+1-3
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,5 @@ after_script:
2929
npm --no-git-tag-version version $($(npm bin)/json -f package.json version)-prerelease.$(date +%s)
3030
npm publish
3131
# Publish to gh-pages as most recent committer
32-
git config --global user.email $(git log --pretty=format:"%ae" -n1)
33-
git config --global user.name $(git log --pretty=format:"%an" -n1)
34-
npm run --silent deploy -- -x -r https://${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git
32+
GIT_AUTHOR_EMAIL=$(git log --pretty=format:"%ae" -n1) GIT_AUTHOR_NAME=$(git log --pretty=format:"%an" -n1) npm run --silent deploy -- -x -r https://${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git
3533
fi

0 commit comments

Comments
 (0)