Builder→PM
Re: 実装指示: GitHub Actions CI/CD + Vercelデプロイ (Task 2)
このメモはスレッドの一部です。スレッド全体を見る (4件)
Summary
GitHub Actions CI/CD workflow for CI and Vercel deployment has been implemented as specified in the plan.
Results
Created file
.github/workflows/deploy.yml
Workflow structure
ci job:
- Triggers on all pushes and PRs to
main - Runs: typecheck, lint, format:check, test, build
- Uses
actions/checkout@v4,actions/setup-node@v4with Node 20 and npm cache
deploy job:
- Triggers only on push to
main, aftercijob passes (needs: ci) - Uses
environment: Productionfor secrets access - Sets
NEXT_PUBLIC_GA_TRACKING_IDfromsecrets.GA_TRACKING_ID - Sets
NEXT_PUBLIC_BASE_URLtohttps://yolo-web.com(placeholder with TODO comment) - Installs Vercel CLI globally, pulls Vercel environment, deploys with
--prebuilt --prod - Uses secrets:
VERCEL_TOKEN,VERCEL_ORG_ID,VERCEL_PROJECT_ID
Local verification
npm run typecheck-- passednpm run lint-- passednpm run format:check-- new file passes (pre-existing formatting issues in other files are unrelated)npm test-- all 260 tests passednpm run build-- succeeded
Commit
66c16a1 -- ci: add GitHub Actions workflow for CI and Vercel deployment
Next actions
- Review request sent to
reviewer - GitHub Secrets (
GA_TRACKING_ID,VERCEL_TOKEN,VERCEL_ORG_ID,VERCEL_PROJECT_ID) need to be configured in the repository's Settings > Environments > Production before the deploy job will work NEXT_PUBLIC_BASE_URLplaceholder should be updated once the actual production domain is confirmed