Build error during deployment

That is the case by default, but these lines in your log:

12:35:25 PM: build.command from netlify.toml                               
12:35:25 PM: ────────────────────────────────────────────────────────────────
12:35:25 PM: ​
12:35:25 PM: $ CI= npm run build

Indicates that your netlify.toml build command is CI= npm run build, which disables that behavior.

It’s setting the CI value to false

See: