Skip to content

Commit

Permalink
Address comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
brendandburns committed Feb 14, 2019
1 parent b8a2272 commit 571975c
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 5 deletions.
3 changes: 3 additions & 0 deletions build-package.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/bin/bash

# exit on any error
set -e

. ./pre-check.sh

tsc
Expand Down
19 changes: 14 additions & 5 deletions push-package.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,21 @@
#!/bin/bash
if [[ "${1}x" == "x" ]]; then
echo "Usage: ${0} <version>"
exit 1
fi

# exit on any error
set -e

version=$(cat package.json | jq -r .version)

. ./pre-check.sh

echo "This will tag and publish package version ${version}"
read -p "Confirm [y/N]" confirm

case "${confirm}" in
y|Y ) echo "Tagging and pushing ${version}";;
* ) echo "Aborting"; exit 0;;
esac

git tag ${1}
git push upstream ${tag}
git push upstream ${1}

npm publish

0 comments on commit 571975c

Please sign in to comment.