Skip to content
PidebugDevOps

Diagnose npm 404 publish error in GitHub Actions release

Session from pi-web on Hugging Face by woxQAQ · MIT · condensed by Coders Talk

29ssession
0interventions
GOAL

Figure out why the release workflow's npm publish step fails with a 404 error for the @woxqaq/pi-web package.

  1. Prompt · +0
    What's causing this npm 404 error when publishing @woxqaq/[email protected] via PUT to the registry?
  2. Agent did · +0m
    Read package.json to check the package name, version and scope configuration
  3. Agent did · +0m
    Diagnosed the error as an npm auth/permissions issue in the CI environment (path shows /home/runner/), then checked for a .npmrc file and listed workflow files
  4. Agent did · +0m
    Reviewed release.yml and ci.yml workflows to see how npm publish is configured and where auth token should be set
  5. Outcome · +0m
    Root cause identified as missing npm auth token in the CI publish workflow; no fix applied yet in this session
VERDICT

Next time I'd paste the workflow files alongside the error so the agent doesn't have to go fetch them itself. The read of release.yml and ci.yml was the useful step here, it's what let the agent pin down that the publish job likely lacks an NPM_TOKEN, but we never got to actually applying or verifying a fix.

I tried this · 0

Discussion · 0

How Builds work