diff --git a/bootstrap.mjs b/bootstrap.mjs index 7ae08207c..92ba9d584 100644 --- a/bootstrap.mjs +++ b/bootstrap.mjs @@ -3,14 +3,16 @@ import { execSync } from 'child_process'; const __dirname = url.fileURLToPath(new URL('.', import.meta.url)); +const actionRoot = pathResolve(__dirname, '../'); + execSync( - `npm --prefix ${__dirname} install semantic-release --omit=dev --no-audit --no-progress --prefer-offline`, + `npm --prefix ${actionRoot} install semantic-release --omit=dev --no-audit --no-progress --prefer-offline`, { stdio: 'inherit', - cwd: __dirname, + cwd: actionRoot, env: { ...process.env, - PWD: __dirname, + PWD: actionRoot, }, }, );