From 2283442ff7cfc90400a2e383b5dd6a46ace7d76d Mon Sep 17 00:00:00 2001 From: manNomi Date: Sun, 25 Jan 2026 00:42:22 +0900 Subject: [PATCH] feat: add --scope option to vercel commands in CI - Add --scope option to all vercel commands for organization context - Convert single-line commands to multi-line format for better readability --- .github/workflows/build.yml | 28 ++++++++++++++++++++++++---- 1 file changed, 24 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6598bce2..2449a54d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -39,16 +39,36 @@ jobs: run: rm -rf .vercel - name: Link Vercel Project - run: vercel link --yes --project=${{ secrets.VERCEL_PROJECT_ID }} --token=${{ secrets.VERCEL_TOKEN }} + run: | + vercel link \ + --yes \ + --project=${{ secrets.VERCEL_PROJECT_ID }} \ + --scope=${{ secrets.VERCEL_ORG_ID }} \ + --token=${{ secrets.VERCEL_TOKEN }} - name: Pull Vercel Environment Information - run: vercel pull --yes --environment=${{ env.VERCEL_ENV }} --token=${{ secrets.VERCEL_TOKEN }} + run: | + vercel pull \ + --yes \ + --environment=${{ env.VERCEL_ENV }} \ + --scope=${{ secrets.VERCEL_ORG_ID }} \ + --token=${{ secrets.VERCEL_TOKEN }} - name: Build Project Artifacts - run: vercel build --yes --target=${{ env.VERCEL_ENV }} --token=${{ secrets.VERCEL_TOKEN }} + run: | + vercel build \ + --yes \ + --target=${{ env.VERCEL_ENV }} \ + --scope=${{ secrets.VERCEL_ORG_ID }} \ + --token=${{ secrets.VERCEL_TOKEN }} - name: Deploy Project Artifacts to Vercel - run: vercel deploy --prebuilt --target=${{ env.VERCEL_ENV }} --token=${{ secrets.VERCEL_TOKEN }} + run: | + vercel deploy \ + --prebuilt \ + --target=${{ env.VERCEL_ENV }} \ + --scope=${{ secrets.VERCEL_ORG_ID }} \ + --token=${{ secrets.VERCEL_TOKEN }} - name: Output Tag Version run: echo "Deployment completed for version $VERSION_TAG"