-2

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

1 Answers1

0

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"