End-to-end workflow for pushing a web project to GitHub and deploying it live on Vercel with zero hiccups. Incorporates all known gotchas and best practices.
Verify these are installed and authenticated before starting:
# GitHub CLI
which gh && gh auth status 2>&1
# Vercel CLI
which vercel && vercel whoami 2>&1
brew install gh
gh auth login --web --git-protocol https
Enter a device code at
github.com/login/device. Wait for✓ Logged inconfirmation before proceeding.
npm i -g vercel
vercel login
Enter a device code at
vercel.com/device. Wait forCongratulations! You are now signed in.confirmation before proceeding.