You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
282 B
14 lines
282 B
10 months ago
|
#!/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
|