Deployment via GH Action sometimes gives error about NPX failing with "exit code 1"
I have auto-deployment set up via the Wrangler GH action. Normally when I push my deployments go through fine, but every now and then (twice today) I get the below. Sometimes if I re-run the job (from the GH side), it runs successfully; other times, like today, re-running the jobs brings the same error again.
Over on the CF side, under Deployments, it seems to think the deployment did succeed. It says the active deployment was "a few seconds ago". But this is not true; a check of the code (via the CF > Workers dashboard) shows the changes didn't come through, so the workflow error did indeed stop the deployment.
Why does this happen?
1 Reply
This doesn't look like it has anything to do with wrangler, this seems to be an issue with github actions https://github.com/cypress-io/github-action/issues/211
What command are you running with
npx
?