简体   繁体   中英

My github action keeps failing and I have no idea why

I wrote a github action to build and deploy my app and it fails with no definitive error.

Here is an SS of the error .

Here is an SS of the main.yml in my workflow

I actually figured out what was wrong, I had a build config switched on that was treating warnings as errors, the build process kept failing because of warnings. The solution was to switch it off like so;

change

"build": "react-scripts build"

to

"build": "CI=false react-scripts build"

in my package json.

By default the build process during the build process reads

"build": "CI=true react-scripts build"

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM