Improve "prepare-release" and introduce "release" scripts

Has to do with #244.
This commit is contained in:
Paris Kasidiaris 2016-08-24 01:43:37 +03:00
parent 01c20807c2
commit 05aff199b2
2 changed files with 21 additions and 0 deletions

View File

@ -25,3 +25,4 @@ sed -i "s/\"version\": \"$CURRENT_BOWER_JSON_VERSION\"/\"version\": \"$NEW_VERSI
sh bin/generate-authors sh bin/generate-authors
git commit -S -s -a -m "Bump version to $NEW_VERSION" git commit -S -s -a -m "Bump version to $NEW_VERSION"
git tag $NEW_VERSION

20
bin/release Executable file
View File

@ -0,0 +1,20 @@
#! /usr/bin/env sh
# Usage: ./bin/release x.y.z
# x.y.z should be semver (e.g. 1.0.0)
if [ -z "$1" ];
then
echo "No version supplied. Please a version argument\n"
echo "Usage: $0 VERSION\n"
echo "Example: $0 1.0.0"
exit
fi
NEW_VERSION=$1
./bin/prepare-release $NEW_VERSION
git push && \
git push --tags && \
npm publish