From 4d1421ff329d4435d1b6032a798a5be7bc8b4c8e Mon Sep 17 00:00:00 2001 From: Patrick Mowrer Date: Sun, 5 Apr 2020 16:00:42 -0400 Subject: [PATCH] fix: wrap success and fail plugins This should allow the posting of comments to work when using the `github` plugin. [Fixes #51] --- src/index.js | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/src/index.js b/src/index.js index 27e202a..0e94a9f 100644 --- a/src/index.js +++ b/src/index.js @@ -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}', };