12
0
Fork 0
mirror of https://github.com/cycjimmy/semantic-release-action.git synced 2026-05-14 04:20:33 +00:00

fixing more issues cjs->esm

This commit is contained in:
Leif Ødegård Uhlen 2026-05-05 11:56:25 +02:00
parent de01a3558f
commit 574cc250a9

View file

@ -14,7 +14,7 @@ export const handleBranchesOption = () => {
core.debug(`branches input: ${branches}`);
core.debug(`branch input: ${branch}`);
const semanticVersion = import('semantic-release/package.json').version;
const semanticVersion = await import('semantic-release/package.json', { with: { type: 'json' } }).version;
const semanticMajorVersion = Number(semanticVersion.replace(/\..+/g, ''));
core.debug(`semanticMajorVersion: ${semanticMajorVersion}`);