From 0ff5438ab238690cf718369fb3c3bc9eee1ca1cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leif=20=C3=98deg=C3=A5rd=20Uhlen?= <126719+leifode@users.noreply.github.com> Date: Tue, 5 May 2026 12:07:28 +0200 Subject: [PATCH] fixing more issues cjs->esm --- src/handleOptions.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/handleOptions.js b/src/handleOptions.js index d772d1b..39ac7b1 100644 --- a/src/handleOptions.js +++ b/src/handleOptions.js @@ -14,8 +14,8 @@ export const handleBranchesOption = () => { core.debug(`branches input: ${branches}`); core.debug(`branch input: ${branch}`); - const { semanticVersion } = await import('semantic-release/package.json', { with: { type: 'json' } }); - const semanticMajorVersion = Number(semanticVersion.replace(/\..+/g, '')); + const { version } = import('semantic-release/package.json', { with: { type: 'json' } }); + const semanticMajorVersion = Number(version.replace(/\..+/g, '')); core.debug(`semanticMajorVersion: ${semanticMajorVersion}`); // older than v16