I wrote a github action to build and deploy my app and it fails with no definitive error.
Asked
Active
Viewed 784 times
-2
-
Please add entire action log and add code as text – Konrad Aug 02 '22 at 21:47
-
Is your build passing on local ? Exit code 1 says otherwise. – codeaprendiz Aug 03 '22 at 09:02
-
You are trying to build the app, and it seems that have an unused variable named `FileBase`. Get rid of that and try again. – Hamid Haghdoost Aug 03 '22 at 10:09
1 Answers
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"

Salihu Dickson
- 11
- 1
- 3