diff --git a/lib/publish.js b/lib/publish.js index 94d1ec0..5b9c847 100644 --- a/lib/publish.js +++ b/lib/publish.js @@ -72,9 +72,9 @@ async function publish (pluginConfig, context) { // make a commit bumping to snapshot version await commitVersionInPomXml(`${nextSnapshotVersion.join('.')}-SNAPSHOT`, logger) - // only throw an error for s3 deployment after committing a new snapshot version + // if needed, throw an error for s3 deployment after committing a new snapshot version if (!s3deployOk) { - throw getError('ES3ES3DEPLOY') + throw getError('ES3DEPLOY') } }