From 9c01e25bd7716a893ec1bb38b4b9f421fcffbbe8 Mon Sep 17 00:00:00 2001 From: Julien Ganichot Date: Wed, 15 Nov 2023 12:34:08 +0100 Subject: [PATCH] test: tryfix --- bootstrap.mjs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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, }, }, );