From ec612c7039749331b30096ce0e5460c5eea8b369 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 11:53:11 +0200 Subject: [PATCH] fixing more issues cjs->esm --- src/handleOptions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/handleOptions.js b/src/handleOptions.js index cb30712..908c32d 100644 --- a/src/handleOptions.js +++ b/src/handleOptions.js @@ -14,7 +14,7 @@ export const handleBranchesOption = () => { core.debug(`branches input: ${branches}`); core.debug(`branch input: ${branch}`); - const { version: semanticVersion } = await import('semantic-release/package.json', { with: { type: 'json' } }); + const semanticVersion = await import('semantic-release/package.json', { with: { type: 'json' } }).version; const semanticMajorVersion = Number(semanticVersion.replace(/\..+/g, '')); core.debug(`semanticMajorVersion: ${semanticMajorVersion}`);