diff --git a/action.yml b/action.yml index 9e543a33a..6c275a5bc 100644 --- a/action.yml +++ b/action.yml @@ -71,5 +71,6 @@ outputs: Released version in format of X.Y.Z (major.minor.patch-prerelease+build). name: Release me! runs: - main: bootstrap.mjs + main: dist/index.js using: node20 + pre: bootstrap.mjs diff --git a/bootstrap.mjs b/bootstrap.mjs index 9a20bb2be..233e69b1d 100644 --- a/bootstrap.mjs +++ b/bootstrap.mjs @@ -2,7 +2,7 @@ import { execSync } from 'child_process'; try { const __dirname = new URL('.', import.meta.url).pathname; - console.log('__dirname', __dirname); + execSync( 'npm install semantic-release --omit=dev --no-audit --no-progress --prefer-offline', { @@ -10,8 +10,6 @@ try { cwd: __dirname, }, ); - - await import('./dist/index.js'); } catch (err) { console.log(err); }