Skip to content

Commit

Permalink
version
Browse files Browse the repository at this point in the history
  • Loading branch information
esphas committed Nov 21, 2018
1 parent fbbc099 commit 3458983
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bumpver.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ function makeScoop(data) {
fs.writeFileSync(scoopPath, JSON.stringify(scoop, null, 2));
}

async function gitTag() {
async function gitTag(version) {
await exec('git add ' + infoPath);
await exec('git add ' + scoopPath);
await exec('git commit -m "bump version"');
await exec('git commit -m "bump version to v' + version + '"');
await exec('git tag v' + version);
}

Expand All @@ -46,7 +46,7 @@ function main(type, extra) {
let data = { version };
makeScoop(data);
fs.writeFileSync(infoPath, JSON.stringify(data, null, 2));
gitTag();
gitTag(version);
}

let type = process.argv[2] || 'm';
Expand Down

0 comments on commit 3458983

Please sign in to comment.