From f64dd15c7ebc1604b17eeb3649feb80722b41d4e Mon Sep 17 00:00:00 2001 From: Manas Jayanth <3097018+ManasJayanth@users.noreply.github.com> Date: Sat, 27 Jul 2024 07:24:51 +0530 Subject: [PATCH] Fixes workingDirectory of esy npm-release command --- dist/index.js | 5 ++++- index.ts | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/dist/index.js b/dist/index.js index 00fb403..9b58612 100644 --- a/dist/index.js +++ b/dist/index.js @@ -141361,7 +141361,10 @@ function run(name, command, args) { return __awaiter(this, void 0, void 0, function* () { const PATH = process.env.PATH ? process.env.PATH : ""; core.startGroup(name); - yield (0,exec.exec)(command, args, { env: Object.assign(Object.assign({}, process.env), { PATH }) }); + yield (0,exec.exec)(command, args, { + env: Object.assign(Object.assign({}, process.env), { PATH }), + cwd: workingDirectory, + }); core.endGroup(); }); } diff --git a/index.ts b/index.ts index a41efd9..ff9113c 100644 --- a/index.ts +++ b/index.ts @@ -56,7 +56,10 @@ workingDirectory = path.isAbsolute(workingDirectory) async function run(name: string, command: string, args: string[]) { const PATH = process.env.PATH ? process.env.PATH : ""; core.startGroup(name); - await exec(command, args, { env: { ...process.env, PATH } }); + await exec(command, args, { + env: { ...process.env, PATH }, + cwd: workingDirectory, + }); core.endGroup(); }