postpublish.sh 257 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 #!/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 npm run gh-pages