From ee0a168f6e0ff1c956bc1c64d0b3ca95bedd727f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=A5=E6=B5=A9?= Date: Sun, 6 Oct 2024 23:28:48 +0800 Subject: [PATCH] feat: dynamically import '@actions/core' in runRelease function --- index.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.mjs b/index.mjs index 660fdfc..14fbe13 100644 --- a/index.mjs +++ b/index.mjs @@ -2,7 +2,6 @@ import { exec as execCallback } from 'node:child_process'; import { dirname, resolve } from 'node:path'; import { fileURLToPath } from 'node:url'; import { promisify } from 'node:util'; -import core from '@actions/core'; const exec = promisify(execCallback); const self_cwd = dirname(fileURLToPath(import.meta.url)); // import packageJson from './package.json' with { type: "json" }; @@ -21,6 +20,7 @@ async function installDependencies() { } async function runRelease() { + const core = await import('@actions/core'); const semanticRelease = await import('semantic-release'); const result = await semanticRelease.default( {