Skip to content

Commit

Permalink
Fixes workingDirectory of esy npm-release command
Browse files Browse the repository at this point in the history
  • Loading branch information
ManasJayanth committed Jul 27, 2024
1 parent b104730 commit f64dd15
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
});
}
Expand Down
5 changes: 4 additions & 1 deletion index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down

0 comments on commit f64dd15

Please sign in to comment.