-
Notifications
You must be signed in to change notification settings - Fork 395
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
682d7f8
commit 0a53a5b
Showing
1 changed file
with
16 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |