Skip to content

Commit

Permalink
fix(prepare, publish): properly wait for asynchronous functions
Browse files Browse the repository at this point in the history
  • Loading branch information
evansiroky committed Nov 29, 2018
1 parent b47d5e5 commit 262bc8a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/prepare.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ module.exports = async function publish (pluginConfig, context) {
// special logic to do some extra Conveyal-specific tasks
if (options.useConveyalWorkflow) {
// commit and push version that was just deployed
saveChangesToPomXml(context, nextRelease.version)
await saveChangesToPomXml(context, nextRelease.version)
}
}
4 changes: 2 additions & 2 deletions lib/publish.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ module.exports = async function publish (pluginConfig, context) {
)

// commit and push snapshot version
saveChangesToPomXml(context, nextSnapshotVersionStr)
await saveChangesToPomXml(context, nextSnapshotVersionStr)

if (options.devBranch) {
// merge master into dev
mergeMasterIntoDev(context)
await mergeMasterIntoDev(context)
}
}
}

0 comments on commit 262bc8a

Please sign in to comment.