DEV Community


Posted on


Publish site with Netlify and GitHub repo

I am writing this because this is the same problem I keep facing again and again when I am deploying a site through GitHub repo and Netlify.

Here to not the same happening again and smooth process.

Adding locally hosted code to GitHub Using Git
The GitHub docs explains it simply.

After choosing the repo from Netlify and starting the deploy process and getting a error, in build and deploy -> build settings -> in build command write

CI= npm run build

Image description

and it works and the site is deployed!!

Top comments (2)

naubit profile image
Al - Naubit

Hey, that was a nice read, you got my follow, keep writing 😉

shweta200126 profile image

Thank you!

Advice For Junior Developers

Advice from a career of 15+ years for new and beginner developers just getting started on their journey.