Skip to content

Commit

Permalink
Release v0.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Alec Gibson committed Sep 13, 2018
1 parent 33a38e7 commit 5e4c716
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# 0.1.0

Initial release
17 changes: 17 additions & 0 deletions tag.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/bin/bash

VERSION=$(node -p "require('./package.json').version")

git fetch --tags
VERSION_COUNT=$(git tag --list $VERSION | wc -l)

if [ $VERSION_COUNT -gt 0 ]
then
echo "Version $VERSION already tagged."
exit 0
else
echo "Tagging version $VERSION"
fi

git tag $VERSION
git push origin refs/tags/$VERSION

0 comments on commit 5e4c716

Please sign in to comment.