12
0
Fork 0
mirror of https://github.com/cycjimmy/semantic-release-action.git synced 2026-05-18 22:01:53 +00:00

more fixes cjs->esm

This commit is contained in:
Leif Ødegård Uhlen 2026-05-05 11:02:21 +02:00
parent 9efd3dd5aa
commit ca92529945
5 changed files with 17 additions and 5 deletions

View file

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