Compare commits

...

2 Commits

Author SHA1 Message Date
Colin McDonnell d1e075fa3b 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
2026-04-12 19:17:09 +00:00
Colin McDonnell ed90735ba0 drop redundant NODE_AUTH_TOKEN="" from publish step
Made-with: Cursor
2026-04-12 19:03:22 +00:00
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -101,7 +101,7 @@ jobs:
- name: Publish to npm - name: Publish to npm
if: steps.check_tag.outputs.exists == 'false' if: steps.check_tag.outputs.exists == 'false'
run: NODE_AUTH_TOKEN="" npm publish --provenance --access public run: npm publish --provenance --access public
- name: Summary - name: Summary
if: always() if: always()
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "pullfrog", "name": "pullfrog",
"version": "0.0.196", "version": "0.0.197",
"type": "module", "type": "module",
"bin": { "bin": {
"pullfrog": "dist/cli.mjs", "pullfrog": "dist/cli.mjs",
+1 -1
View File
@@ -44,7 +44,7 @@ function runNpx(context: RuntimeContext, packageSpec: string, cliArgs: string[])
? join(context.nodeBinDir, "npx.cmd") ? join(context.nodeBinDir, "npx.cmd")
: join(context.nodeBinDir, "npx"); : join(context.nodeBinDir, "npx");
execFileSync(npxPath, ["--yes", packageSpec, ...cliArgs], { execFileSync(npxPath, ["--yes", packageSpec, ...cliArgs], {
cwd: context.actionRoot, cwd: process.env.GITHUB_WORKSPACE || context.actionRoot,
stdio: "inherit", stdio: "inherit",
env: context.env, env: context.env,
}); });