From 4febc8e7431fef8fed97a8b8565890d3df9d6387 Mon Sep 17 00:00:00 2001 From: Yasser Fadl Date: Wed, 29 Jun 2016 15:54:25 +0200 Subject: [PATCH] Updating release.sh --- release.sh | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/release.sh b/release.sh index 1feffa0..b84bfed 100644 --- a/release.sh +++ b/release.sh @@ -1,3 +1,6 @@ +#!/bin/bash +set -e + if [ -z $1 ]; then echo "Please provide a release version: patch, minor or major" exit @@ -9,14 +12,12 @@ if [ $( npm whoami ) != "deepstreamio" ]; then fi echo 'Starting release' - npm version $1 echo 'Pushing to github' git push --follow-tags -echo "Now we wait for the CI to build and upload artifacts to release" - - - +echo 'Publishing to npm' +npm publish +echo "Now we wait for the CI to build and upload artifacts to release" \ No newline at end of file