Skip to content

Commit

Permalink
fix(semantic-release): Correctly await results of async functions
Browse files Browse the repository at this point in the history
  • Loading branch information
danez committed May 5, 2020
1 parent af22d52 commit f467fe6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/spire-plugin-semantic-release/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ function semanticRelease(
async setup({ resolve }) {
let semanticReleaseArgs = [];
let semanticReleaseConfigFile = defaultSemanticReleaseConfig;
const customConfig = hasCustomConfig();
const customConfig = await hasCustomConfig();

if (!customConfig || !allowCustomConfig) {
if (!semanticReleaseConfigFile) {
let actualProvider = provider;
if (actualProvider === 'auto') {
actualProvider = getProvider();
actualProvider = await getProvider();
}
semanticReleaseConfigFile = `spire-plugin-semantic-release/config/${
actualProvider === 'none' ? 'default' : actualProvider
Expand Down

0 comments on commit f467fe6

Please sign in to comment.