Skip to content

Commit

Permalink
Merge pull request #94 from pmowrer/github-comments-fix
Browse files Browse the repository at this point in the history
fix: wrap success and fail plugins
  • Loading branch information
pmowrer authored Sep 16, 2020
2 parents e6ef3af + 4d1421f commit c305f84
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,34 @@ const generateNotes = wrapStep(
}
);

const success = wrapStep(
'success',
compose(
logPluginVersion('success'),
withOnlyPackageCommits,
withOptionsTransforms([mapNextReleaseVersion(versionToGitTag)])
),
{
wrapperName: 'semantic-release-monorepo',
}
);

const fail = wrapStep(
'fail',
compose(
logPluginVersion('fail'),
withOnlyPackageCommits,
withOptionsTransforms([mapNextReleaseVersion(versionToGitTag)])
),
{
wrapperName: 'semantic-release-monorepo',
}
);

module.exports = {
analyzeCommits,
generateNotes,
success,
fail,
tagFormat: readPkg.sync().name + '-v${version}',
};

0 comments on commit c305f84

Please sign in to comment.