From d5c94fc52c9672da0858c0c05220466807c7c1ea Mon Sep 17 00:00:00 2001 From: Sindre Sorhus Date: Fri, 13 Sep 2019 16:54:58 +0700 Subject: [PATCH] Work around issue with `async-exit-hook` --- source/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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();