Skip to content

Commit

Permalink
Made release script capable of tagging releases
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcusLongmuir committed May 4, 2017
1 parent 891629d commit 8b8e99e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
10 changes: 8 additions & 2 deletions ts/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,26 @@ if [ -z ${VERSION} ]; then
exit 1
fi

TAG=${2}
if [ -z ${TAG} ]; then
echo "TAG not set (e.g.\"latest\" or \"beta\")"
exit 1
fi

if [[ `git status --porcelain` ]]; then
echo "There are pending changes, refusing to release."
exit 1
fi

read -p "Release v${VERSION}? " -n 1 -r
read -p "Release v${VERSION} with tag ${TAG}? " -n 1 -r
echo
if [[ $REPLY =~ ^[Yy]$ ]]
then
echo "Building standalone artifact"
npm run lib:build

echo "Staring npm publish"
npm publish --tag beta
npm publish --tag $TAG

echo "Creating Github release branch release/v${VERSION}"
git checkout -b release/v${VERSION}
Expand Down
1 change: 0 additions & 1 deletion ts/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
"removeComments": true,
"noImplicitReturns": true,
"noImplicitAny": true,
"noImplicitThis": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"strictNullChecks": true,
Expand Down

0 comments on commit 8b8e99e

Please sign in to comment.