From 33ce4c45740ed109cf4f3ee814bd1f94bd6f2fff Mon Sep 17 00:00:00 2001 From: Anton Golub Date: Wed, 4 Dec 2024 00:51:52 +0300 Subject: [PATCH] fix: run postrelease if exists --- release.mjs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/release.mjs b/release.mjs index d6b85c2..675e2c2 100755 --- a/release.mjs +++ b/release.mjs @@ -176,5 +176,8 @@ ${commits.join('\n')}`).join('\n') console.log(chalk.bold('Great success!')) - await $`npm run postrelease || exit 0` + if (pkgJson.postrelease) { + console.log('postrelease') + await $`npm run postrelease` + } })()