From d1e075fa3b463f74e86fc53afc943f44f4995dcc Mon Sep 17 00:00:00 2001 From: Colin McDonnell Date: Sun, 12 Apr 2026 19:17:09 +0000 Subject: [PATCH] fix npx binary resolution: run in workspace, not action directory npx was running with cwd set to the action's own directory, which has package.json with "name": "pullfrog". npm treats the local package as satisfying the request and skips the registry fetch, then fails to find the binary (sh: 1: pullfrog: not found). use GITHUB_WORKSPACE instead. Made-with: Cursor --- package.json | 2 +- runCli.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 74498f1..dc52818 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pullfrog", - "version": "0.0.196", + "version": "0.0.197", "type": "module", "bin": { "pullfrog": "dist/cli.mjs", diff --git a/runCli.ts b/runCli.ts index ccac852..eff073d 100644 --- a/runCli.ts +++ b/runCli.ts @@ -44,7 +44,7 @@ function runNpx(context: RuntimeContext, packageSpec: string, cliArgs: string[]) ? join(context.nodeBinDir, "npx.cmd") : join(context.nodeBinDir, "npx"); execFileSync(npxPath, ["--yes", packageSpec, ...cliArgs], { - cwd: context.actionRoot, + cwd: process.env.GITHUB_WORKSPACE || context.actionRoot, stdio: "inherit", env: context.env, });