当我构建时 (npm run build "scripts": { "build": "react-scripts build --passWithNoTests" }
) 项目,它成功构建。但是当我推送更改时,github 上的构建过程失败
> log@0.1.0 build /home/runner/work/project/project
> react-scripts build --passWithNoTests
Creating an optimized production build...
Treating warnings as errors because process.env.CI = true.
Most CI servers set it automatically.
Failed to compile.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! log@0.1.0 build: `react-scripts build --passWithNoTests`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the log@0.1.0 build script.
npm ERR! This is probably not …Run Code Online (Sandbox Code Playgroud)