Skip to content

Commit

Permalink
fix(git): Change chaining to git await
Browse files Browse the repository at this point in the history
  • Loading branch information
Tallyb committed May 13, 2019
1 parent 45a157d commit 2ef845b
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions lib/gitHelper.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,11 @@ const getCurrentBranch = async function() {

const commitVersion = async function(version, production) {
let commitMessage = `chore(app): Version ${version} ${production ? ' production' : ''} `;
return git
.add('./*')
.commit(commitMessage)
.addAnnotatedTag(version, 'v' + version)
.push('origin', 'master')
.pushTags('origin');
await git.add('./*');
await git.commit(commitMessage);
await git.addAnnotatedTag(version, 'v' + version);
await git.push('origin', 'master');
await git.pushTags('origin');

};
/**
Expand Down

0 comments on commit 2ef845b

Please sign in to comment.