Joe
10 months ago
7 changed files with 28 additions and 16 deletions
@ -0,0 +1,13 @@ |
|||||
|
#!/bin/bash |
||||
|
|
||||
|
branchVersion=`cat package.json | sed 's/,/\n/g' | grep \"version\" | sed 's/:/\n/g' | sed '1d' | sed 's/}//g' | grep -Eo '[0-9]*'`; |
||||
|
|
||||
|
git checkout -b v$branchVersion && |
||||
|
|
||||
|
npm run build && |
||||
|
|
||||
|
git push -u origin $branchVersion && |
||||
|
|
||||
|
git checkout develop && |
||||
|
|
||||
|
npm version patch |
Loading…
Reference in new issue