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 12:11:29 +02:00
parent 0ff5438ab2
commit bcf0942c49

View file

@ -6,7 +6,7 @@ import inputs from './inputs.json' with { type: 'json' };;
* Handle Branches Option
* @returns {{}|{branch: string}}
*/
export const handleBranchesOption = () => {
export const handleBranchesOption = async () => {
const branchesOption = {};
const branches = core.getInput(inputs.branches);
const branch = core.getInput(inputs.branch);
@ -14,7 +14,7 @@ export const handleBranchesOption = () => {
core.debug(`branches input: ${branches}`);
core.debug(`branch input: ${branch}`);
const { version } = import('semantic-release/package.json', { with: { type: 'json' } });
const { default: { version } } = await import('semantic-release/package.json', { with: { type: 'json' } });
const semanticMajorVersion = Number(version.replace(/\..+/g, ''));
core.debug(`semanticMajorVersion: ${semanticMajorVersion}`);