diff --git a/source/index.js b/source/index.js index 247e53b6..969489d4 100644 --- a/source/index.js +++ b/source/index.js @@ -85,7 +85,8 @@ module.exports = async (input = 'patch', options) => { } }); - exitHook(callback => { + // The default parameter is a workaround for https://github.com/Tapppi/async-exit-hook/issues/9 + exitHook((callback = () => {}) => { if (publishStatus === 'FAILED' && runPublish) { (async () => { await rollback();