Skip to content

Commit

Permalink
Add postpublish script to tag and push
Browse files Browse the repository at this point in the history
  • Loading branch information
rhys-vdw committed Jun 28, 2016
1 parent 96b7668 commit 1822e74
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 86 deletions.
13 changes: 13 additions & 0 deletions scripts/postpublish.sh
@@ -0,0 +1,13 @@
#!/bin/bash -e

get_property() {
echo $(node -p "p=require('./${1}').${2};")
}

version="$(get_property 'package.json' 'version')"

git commit -am "Release $version"
git tag $version

git push origin master
git push origin master --tags
86 changes: 0 additions & 86 deletions scripts/release.sh

This file was deleted.

0 comments on commit 1822e74

Please sign in to comment.