From 23dacf0800098febb6ad6248178abc1d8dda1e2b Mon Sep 17 00:00:00 2001 From: Bori-github Date: Sat, 14 Mar 2026 00:56:29 +0900 Subject: [PATCH 1/5] =?UTF-8?q?chore(zpl-viewer):=20Vercel=20=EB=B0=B0?= =?UTF-8?q?=ED=8F=AC=EC=9A=A9=20CI/CD=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - main push 시 apps/zpl-viewer 변경 감지 후 배포 - vercel.json 빌드 설정 --- .github/workflows/deploy-zpl-viewer.yml | 32 +++++++++++++++++++++++++ apps/zpl-viewer/.gitignore | 2 ++ vercel.json | 6 +++++ 3 files changed, 40 insertions(+) create mode 100644 .github/workflows/deploy-zpl-viewer.yml create mode 100644 vercel.json diff --git a/.github/workflows/deploy-zpl-viewer.yml b/.github/workflows/deploy-zpl-viewer.yml new file mode 100644 index 0000000..9b3a832 --- /dev/null +++ b/.github/workflows/deploy-zpl-viewer.yml @@ -0,0 +1,32 @@ +name: Deploy zpl-viewer + +on: + push: + branches: + - main + paths: + - 'apps/zpl-viewer/**' + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - uses: pnpm/action-setup@v4 + with: + version: latest + + - uses: actions/setup-node@v4 + with: + node-version-file: .nvmrc + cache: pnpm + + - name: Install dependencies + run: pnpm install + + - name: Deploy to Vercel + run: pnpm dlx vercel --prod --yes --token=${{ secrets.VERCEL_TOKEN }} + env: + VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }} + VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }} diff --git a/apps/zpl-viewer/.gitignore b/apps/zpl-viewer/.gitignore index a547bf3..4329047 100644 --- a/apps/zpl-viewer/.gitignore +++ b/apps/zpl-viewer/.gitignore @@ -22,3 +22,5 @@ dist-ssr *.njsproj *.sln *.sw? +.vercel +.env*.local diff --git a/vercel.json b/vercel.json new file mode 100644 index 0000000..0b1370c --- /dev/null +++ b/vercel.json @@ -0,0 +1,6 @@ +{ + "buildCommand": "pnpm --filter @zpl-kit/zpl-viewer build", + "outputDirectory": "apps/zpl-viewer/dist", + "installCommand": "pnpm install", + "framework": null +} From 941f46e161c40badc34c23e6dd93e70828b68ed3 Mon Sep 17 00:00:00 2001 From: Bori-github Date: Sat, 14 Mar 2026 01:09:52 +0900 Subject: [PATCH 2/5] =?UTF-8?q?chore(zpl-viewer):=20=EB=B0=B0=ED=8F=AC=20?= =?UTF-8?q?=ED=8A=B8=EB=A6=AC=EA=B1=B0=EB=A5=BC=20=ED=83=9C=EA=B7=B8=C2=B7?= =?UTF-8?q?=EC=88=98=EB=8F=99=20=EC=8B=A4=ED=96=89=EC=9C=BC=EB=A1=9C=20?= =?UTF-8?q?=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - main push 대신 zpl-viewer/v* 태그 푸시 시 배포 - workflow_dispatch로 수동 실행 지원 --- .github/workflows/deploy-zpl-viewer.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy-zpl-viewer.yml b/.github/workflows/deploy-zpl-viewer.yml index 9b3a832..7378172 100644 --- a/.github/workflows/deploy-zpl-viewer.yml +++ b/.github/workflows/deploy-zpl-viewer.yml @@ -2,10 +2,9 @@ name: Deploy zpl-viewer on: push: - branches: - - main - paths: - - 'apps/zpl-viewer/**' + tags: + - 'zpl-viewer/v*' + workflow_dispatch: jobs: deploy: From 8a595fd01704068160cf666a64b385dca9df500f Mon Sep 17 00:00:00 2001 From: Bori-github Date: Sat, 14 Mar 2026 01:19:18 +0900 Subject: [PATCH 3/5] =?UTF-8?q?chore(zpl-viewer):=20vercel.json=EC=9D=84?= =?UTF-8?q?=20=EC=95=B1=20=EB=94=94=EB=A0=89=ED=84=B0=EB=A6=AC=EB=A1=9C=20?= =?UTF-8?q?=EC=9D=B4=EB=8F=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 루트 vercel.json 제거 - apps/zpl-viewer/vercel.json 추가 (Root Directory 기준 설정) --- apps/zpl-viewer/vercel.json | 5 +++++ vercel.json | 6 ------ 2 files changed, 5 insertions(+), 6 deletions(-) create mode 100644 apps/zpl-viewer/vercel.json delete mode 100644 vercel.json diff --git a/apps/zpl-viewer/vercel.json b/apps/zpl-viewer/vercel.json new file mode 100644 index 0000000..9107a08 --- /dev/null +++ b/apps/zpl-viewer/vercel.json @@ -0,0 +1,5 @@ +{ + "outputDirectory": "dist", + "installCommand": "pnpm install", + "buildCommand": "pnpm build" +} diff --git a/vercel.json b/vercel.json deleted file mode 100644 index 0b1370c..0000000 --- a/vercel.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "buildCommand": "pnpm --filter @zpl-kit/zpl-viewer build", - "outputDirectory": "apps/zpl-viewer/dist", - "installCommand": "pnpm install", - "framework": null -} From 3338a94fd4e3c15435e66d9874525b0bc5d6c176 Mon Sep 17 00:00:00 2001 From: Bori-github Date: Sat, 14 Mar 2026 01:22:54 +0900 Subject: [PATCH 4/5] =?UTF-8?q?chore(ci):=20=ED=85=8C=EC=8A=A4=ED=8A=B8=20?= =?UTF-8?q?=EC=9B=8C=ED=81=AC=ED=94=8C=EB=A1=9C=EC=9A=B0=EC=97=90=20?= =?UTF-8?q?=EA=B2=BD=EB=A1=9C=20=ED=95=84=ED=84=B0=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - PR 시 apps/react-zpl, tests, test.yml 변경에만 실행 --- .github/workflows/test.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index ed3b907..dfcb955 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -2,6 +2,10 @@ name: Test on: pull_request: + paths: + - 'apps/react-zpl/**' + - 'tests/**' + - '.github/workflows/test.yml' jobs: test: From 9a36a91ef072a978e72477041db193c86472a94f Mon Sep 17 00:00:00 2001 From: Bori-github Date: Sat, 14 Mar 2026 01:27:32 +0900 Subject: [PATCH 5/5] =?UTF-8?q?chore(ci):=20test=20=EC=9B=8C=ED=81=AC?= =?UTF-8?q?=ED=94=8C=EB=A1=9C=EC=9A=B0=EB=A5=BC=20test-react-zpl.yml?= =?UTF-8?q?=EB=A1=9C=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - react-zpl 테스트 전용 이름 지정 - paths 필터의 워크플로우 경로 수정 --- .github/workflows/{test.yml => test-react-zpl.yml} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename .github/workflows/{test.yml => test-react-zpl.yml} (92%) diff --git a/.github/workflows/test.yml b/.github/workflows/test-react-zpl.yml similarity index 92% rename from .github/workflows/test.yml rename to .github/workflows/test-react-zpl.yml index dfcb955..a599a54 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test-react-zpl.yml @@ -5,7 +5,7 @@ on: paths: - 'apps/react-zpl/**' - 'tests/**' - - '.github/workflows/test.yml' + - '.github/workflows/test-react-zpl.yml' jobs: test: