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:
parent
0ff5438ab2
commit
bcf0942c49
1 changed files with 2 additions and 2 deletions
|
|
@ -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}`);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue