From de00e7e6258afe717dbc295b734252484372042f Mon Sep 17 00:00:00 2001 From: Louis Bompart Date: Thu, 26 Oct 2023 14:26:59 -0400 Subject: [PATCH] fix: invoke is cli (#1340) --- utils/release/is-cli-release.mjs | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/utils/release/is-cli-release.mjs b/utils/release/is-cli-release.mjs index b4acb59c51..16e20cedd5 100644 --- a/utils/release/is-cli-release.mjs +++ b/utils/release/is-cli-release.mjs @@ -2,12 +2,10 @@ import {readFileSync} from 'node:fs'; import {setOutput} from '@actions/core'; const CLI_PKG_MATCHER = /^@coveo\/cli@(?\d+\.\d+\.\d+)$/gm; -async () => { - const packagesReleased = readFileSync('.git-message', { - encoding: 'utf-8', - }).trim(); +const packagesReleased = readFileSync('.git-message', { + encoding: 'utf-8', +}).trim(); - // If `@coveo/cli` has not been released we should not build it etc. - const shouldReleaseCli = CLI_PKG_MATCHER.test(packagesReleased); - setOutput('shouldReleaseCli', shouldReleaseCli); -}; +// If `@coveo/cli` has not been released we should not build it etc. +const shouldReleaseCli = CLI_PKG_MATCHER.test(packagesReleased); +setOutput('shouldReleaseCli', shouldReleaseCli);