File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -4,18 +4,18 @@ const fs = require('fs');
44const path = require ( 'path' ) ;
55const util = require ( '@uirouter/publish-scripts/util' ) ;
66const version = require ( '../package.json' ) . version ;
7- // const _exec = util._exec;
8- const _exec = console . log . bind ( console ) ;
7+ const _exec = util . _exec ;
98
109util . packageDir ( ) ;
1110const bowerPath = path . resolve ( __dirname , '..' , 'bower.json' ) ;
1211const bower = JSON . parse ( fs . readFileSync ( bowerPath ) ) ;
13- // util.ensureCleanMaster('master');
12+ util . ensureCleanMaster ( 'master' ) ;
1413
15- // update bower.json
14+ // update bower.json and push
1615bower . version = version ;
1716fs . writeFileSync ( bowerPath , JSON . stringify ( bower , null , 2 ) ) ;
1817_exec ( `git commit -m 'chore(bower): Update bower.json' bower.json` ) ;
18+ _exec ( `git push` ) ;
1919
2020// branch, add/commit release files, and push to bower repository
2121_exec ( `git checkout -b bower-${ version } ` ) ;
You can’t perform that action at this time.
0 commit comments