Skip to content

Commit

Permalink
fix: invokeiscli
Browse files Browse the repository at this point in the history
  • Loading branch information
louis-bompart committed Oct 26, 2023
1 parent 1bdd516 commit 9c0257e
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions utils/release/is-cli-release.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,10 @@ import {readFileSync} from 'node:fs';
import {setOutput} from '@actions/core';

const CLI_PKG_MATCHER = /^@coveo\/cli@(?<version>\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);

0 comments on commit 9c0257e

Please sign in to comment.