Skip to content

ci: GitHub Actions 워크플로우 Vercel 기반으로 전환#265

Merged
Yeonny0723 merged 8 commits intodevelopmentfrom
migrate-to-vercel
Mar 22, 2026
Merged

ci: GitHub Actions 워크플로우 Vercel 기반으로 전환#265
Yeonny0723 merged 8 commits intodevelopmentfrom
migrate-to-vercel

Conversation

@Yeonny0723
Copy link
Contributor

@Yeonny0723 Yeonny0723 commented Mar 21, 2026

변경 사항

배포 파이프라인 재구성

  • build-check.yml 제거 → vercel-build-check.yml로 교체 (yarn buildnpx vercel build)
  • vercel-preview.yml 추가: development push 시 Vercel Preview 배포
  • vercel-production.yml 추가: main push 시 Vercel Production 배포
  • lint-check.yml 유지 (변경 없음)

브랜치 → 환경 매핑

브랜치 환경
development Preview
main Production

feature 브랜치는 development로 merge될 때 preview 배포가 트리거됩니다. PR 단계에서는 vercel build로 빌드 검증만 수행합니다.

.vercel/project.json 커밋

  • .gitignore 규칙 변경: .vercel.vercel/* + !.vercel/project.json
  • project.json을 커밋하여 CI에서 VERCEL_ORG_ID / VERCEL_PROJECT_ID Secret 없이 프로젝트 식별 가능
  • 빌드 아티팩트(cache/, output/)는 계속 무시됨

환경 변수

  • 빌드에 필요한 NEXT_PUBLIC_* 변수는 Vercel 대시보드에서 관리
  • GitHub Secrets에는 VERCEL_TOKEN만 등록
  • 보안을 위해 token을 CLI 인자 대신 env: 블록으로 주입

테스트 방법

  • PR 생성 시 vercel build check 워크플로우가 트리거되는지 확인
  • development merge 후 Vercel Preview 배포가 정상 실행되는지 확인
  • main merge 후 Vercel Production 배포가 정상 실행되는지 확인

관련 문서

Vercel 운영/구성 가이드 문서

@Yeonny0723 Yeonny0723 requested a review from a team as a code owner March 21, 2026 07:35
@vercel
Copy link

vercel bot commented Mar 21, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
pfplay-web Ready Ready Preview, Comment Mar 21, 2026 8:12am

@Yeonny0723 Yeonny0723 merged commit 37b03a8 into development Mar 22, 2026
4 checks passed
@Yeonny0723 Yeonny0723 deleted the migrate-to-vercel branch March 22, 2026 01:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant