Skip to content

Commit

Permalink
chore(bower): Actually commit the changes
Browse files Browse the repository at this point in the history
  • Loading branch information
christopherthielen committed Dec 20, 2017
1 parent 24dd269 commit ab50f1b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scripts/bower_release.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,18 @@ const fs = require('fs');
const path = require('path');
const util = require('@uirouter/publish-scripts/util');
const version = require('../package.json').version;
// const _exec = util._exec;
const _exec = console.log.bind(console);
const _exec = util._exec;

util.packageDir();
const bowerPath = path.resolve(__dirname, '..', 'bower.json');
const bower = JSON.parse(fs.readFileSync(bowerPath));
// util.ensureCleanMaster('master');
util.ensureCleanMaster('master');

// update bower.json
// update bower.json and push
bower.version = version;
fs.writeFileSync(bowerPath, JSON.stringify(bower, null, 2));
_exec(`git commit -m 'chore(bower): Update bower.json' bower.json`);
_exec(`git push`);

// branch, add/commit release files, and push to bower repository
_exec(`git checkout -b bower-${version}`);
Expand Down

0 comments on commit ab50f1b

Please sign in to comment.