Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Heroku: Exit code should not be zero if there is an error applying patches #210

Open
OliverJAsh opened this issue Feb 20, 2020 · 2 comments

Comments

@OliverJAsh
Copy link
Contributor

OliverJAsh commented Feb 20, 2020

When yarn is ran as part of a build for a Heroku application and the patches fail to apply, the exit code is 0. I expect it to be non-zero.

This means that a Heroku application will be deployed even if the patches failed to apply (!!).

This is happening because Heroku is not detected by the is-ci check.

Related: #143

@ds300
Copy link
Owner

ds300 commented Mar 20, 2020

Thanks for pointing this out!! This exit code business is such a minefield. Would adding a NODE_ENV=production check take care of it?

@OliverJAsh
Copy link
Contributor Author

Would adding a NODE_ENV=production check take care of it?

In our case, yes, but some users might deploy to Heroku with NODE_ENV=staging 🤔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants