Skip to content

Commit

Permalink
[TASK] add publish scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
geertweening committed Sep 18, 2014
1 parent 7b438a8 commit bd92cc1
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
16 changes: 16 additions & 0 deletions scripts/publish
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
echo "PUBLISH"

function exit_on_error {
res=$?
[[ ${res:-99} -eq 0 ]] || exit $res
}

rm -rf node_modules

npm install
npm test
exit_on_error

echo ""
echo "publish to npm"
npm publish
16 changes: 16 additions & 0 deletions scripts/publish_rc
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
echo "PUBLISH RELEASE CANDIDATE"

function exit_on_error {
res=$?
[[ ${res:-99} -eq 0 ]] || exit $res
}

rm -rf node_modules

npm install
npm test
exit_on_error

echo ""
echo "publish to npm"
npm publish --tag beta

0 comments on commit bd92cc1

Please sign in to comment.