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);