Skip to content

Commit

Permalink
rework release-master.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
danamlewis committed Jun 18, 2018
1 parent 682d7f8 commit 0a53a5b
Showing 1 changed file with 16 additions and 7 deletions.
23 changes: 16 additions & 7 deletions release-master.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 0a53a5b

Please sign in to comment.