Skip to content

Commit a57744c

Browse files
committed
checkout master before tagging [semver minor]
1 parent 5236814 commit a57744c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scripts/create_semver_tag.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,14 @@ if [ "$TRAVIS_REPO_SLUG" == "watson-developer-cloud/node-sdk" ] \
1616
export SEMVER=${BASH_REMATCH[1]};
1717
echo "Creating semver $SEMVER per commit message"
1818

19+
git checkout master
20+
1921
npm version $SEMVER
2022

2123
git config --global user.email "[email protected]"
2224
git config --global user.name "travis-ci"
2325
git config remote.origin.url https://${GH_TOKEN}@github.com/watson-developer-cloud/node-sdk
24-
git push origin master --follow-tags
26+
git push --follow-tags
2527

2628
else
2729

0 commit comments

Comments
 (0)