Skip to content

Commit ab50f1b

Browse files
chore(bower): Actually commit the changes
1 parent 24dd269 commit ab50f1b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

scripts/bower_release.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,18 @@ const fs = require('fs');
44
const path = require('path');
55
const util = require('@uirouter/publish-scripts/util');
66
const version = require('../package.json').version;
7-
// const _exec = util._exec;
8-
const _exec = console.log.bind(console);
7+
const _exec = util._exec;
98

109
util.packageDir();
1110
const bowerPath = path.resolve(__dirname, '..', 'bower.json');
1211
const 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
1615
bower.version = version;
1716
fs.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}`);

0 commit comments

Comments
 (0)