treating warnings as errors because process.env.ci = true. netlify code example
Example 1: Treating warnings as errors because process.env.CI = true.
CI= npm run build
or
CI=false npm run build
use this commands
Example 2: Treating warnings as errors because process.env.CI = true. github
- name: test
image: node
commands:
- unset CI
- npm install
- npm run tests