diff --git a/release-master.sh b/release-master.sh index e8334e6a9..ffb0cd669 100755 --- a/release-master.sh +++ b/release-master.sh @@ -1,8 +1,17 @@ -git checkout master && \ -git pull origin master && \ -npm version patch && \ -git tag -l && \ -echo Publishing in 10s: Ctrl-C to cancel && \ -sleep 10 && \ -npm publish && \ +#!/bin/bash + +# exit script immediately on any error +set -eu + +git checkout master +git pull origin master +echo "New version to be published in npm:" +npm version patch +echo "Publishing in 60s: Ctrl-C to cancel" +sleep 60 +echo "Running npm publish:" +npm publish +echo "Full list of git tags:" +git tag -l +echo "Pushing git tags to origin:" git push --tags origin master