I use Vercel to deploy a Next.js app and I use Vercel for GitHub for CI/CD. Vercel automatically deploys code pushed to my master
branch to production, and I would like to keep this functionality. However, Vercel also creates preview deployments for each push, and when I create a pull request, this deployment shows up under 'Checks.' Is there a way to stop this from happening? I don't have an issue with Vercel creating a preview deployment for each push I make, but I would like for Vercel's deployment not to appear under the 'Checks' section of each pull request.
You can use the "Ignore Build Step": https://vercel.com/support/articles/how-do-i-use-the-ignored-build-step-field-on-vercel
You can tell Vercel only to build master
(or main
depending on your git
configuration), and all other branches will be ignored.
EDIT: Thanks to @Dani Akash for the suggestion below