-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e63fc06
commit 8e4d712
Showing
2 changed files
with
26 additions
and
5 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
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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#!/usr/bin/env bash | ||
|
||
APP_TAG="v`node -p 'require("./package.json").version'`" | ||
GIT_COMMIT=`git rev-parse HEAD` | ||
|
||
# see http://docs.travis-ci.com/user/originment/custom/ | ||
echo $0: configuring git | ||
git config --global user.email "builds@travis-ci.com" | ||
git config --global user.name "Travis CI" | ||
|
||
echo $0: git reseting | ||
git reset --hard HEAD | ||
|
||
echo $0: tagging commit ${GIT_COMMIT} as ${APP_TAG} | ||
git tag "${APP_TAG}" "${GIT_COMMIT}" | ||
|
||
echo $0: version bumping | ||
<<<<<<< HEAD | ||
npm version patch -m 'Version bump to %s' | ||
======= | ||
npm version patch | ||
>>>>>>> 8735da7... Release v0.9.0 | ||
|
||
echo $0: pushing tags and master | ||
git push -q origin master --tags | ||
|