name: autoforge description: "Deployment and build automation. Always push when building. Verify branch (main) before push. Deploy to production after changes. Use for: build, deploy, push, release, ship. Monorepo: check Vercel Git integration, root directory, GitHub Actions fallback."
Autoforge — Build, Push, Deploy
Automation workflow for shipping code. Ensures builds are pushed and deployed correctly across projects.
When to Use
- After building or making changes the user wants live
- When the user says "push", "deploy", "ship", or "build and push"
- When debugging "changes not showing" on a live site
Core Rules
- Always push when you build — If you run a build and it succeeds, commit and push the changes.
- Verify branch before push — Confirm you're on
main(or the production branch) and pushing to the correct remote. Rungit branch -vvandgit remote -vbefore pushing. - Deploy after push — For Vercel projects: either rely on Git-triggered deploys or run
vercel --prodfrom the project directory if Git integration is misconfigured.
Monorepo Deployment
For repos with multiple Vercel projects (e.g. singulars, becoming-borders):
- Vercel Git — Each project must have Root Directory set to its subfolder. Check: Vercel Dashboard → Project → Settings → Git.
- GitHub Actions — Use workflows as fallback when Git integration fails. Add
VERCEL_TOKEN,VERCEL_ORG_ID,VERCEL_PROJECT_IDas repo secrets. - Manual deploy —
cd <subfolder> && vercel --prodwhen needed.
Verification
After push:
- Check Vercel Deployments for new deploy
- Visit live URL and hard refresh (Cmd+Shift+R) if cached