npm run build is returning exit code 0 to CircleCI #1743
-
I am using CircleCI to deploy an app when changes are pushed to git. One of the steps is the command "npm run build" which in turn runs "preact build". When there is an error with the build, I am seeing a "Build failed!" message in the CircleCI step but it also says "CircleCI received exit code 0" and so continues with the next step of the deployment. Any ideas why CircleCI is receiving an exit code 0 from the build step even though it has failed? I see a very old issue about this same problem but it was fixed: #61 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Edit: Ah, I think I spot it. I thought "Build failed!" was our generic message prepended to all errors. It's not. Opened #1744 for tracking |
Beta Was this translation helpful? Give feedback.
Do you have an example of an error? It's possible we're missing the correct exit code somewhere, but I'd need a pointer to help track that down.Edit: Ah, I think I spot it. I thought "Build failed!" was our generic message prepended to all errors. It's not.
Opened #1744 for tracking