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

fixing more issues cjs->esm

This commit is contained in:
Leif Ødegård Uhlen 2026-05-05 12:07:28 +02:00
parent 716e1d26e9
commit 0ff5438ab2

View file

@ -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