1 changed files with 23 additions and 0 deletions
@ -0,0 +1,23 @@ |
|||||
|
#!/bin/bash |
||||
|
|
||||
|
if [ -z "$1" ] |
||||
|
then |
||||
|
echo "Must specify the release type: major, minor, patch" |
||||
|
exit; |
||||
|
fi |
||||
|
|
||||
|
if [ -z "$2" ] |
||||
|
then |
||||
|
echo "Must specify the remote release target (origin, etc.)" |
||||
|
exit; |
||||
|
fi |
||||
|
|
||||
|
git checkout develop |
||||
|
npm version $1 |
||||
|
git push "$2" develop |
||||
|
|
||||
|
git checkout master |
||||
|
git pull . develop |
||||
|
git push "$2" master |
||||
|
|
||||
|
git checkout develop |
Loading…
Reference in new issue