From 2bc31630f5c212c0ecb0a3f37c765f1cfd4fe108 Mon Sep 17 00:00:00 2001 From: JCNoguera <88061365+VmMad@users.noreply.github.com> Date: Wed, 31 Jul 2024 20:07:50 +0200 Subject: [PATCH] fix: add missing `--prod` flag when building with vercel (#1523) * fix: add missing `--prod` flag when building with vercel * fix: missing `--cwd` flag in vercel pull --- .github/workflows/apps-ui-kit-preview.deploy.yml | 2 +- .github/workflows/apps-ui-kit-production.deploy.yml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/apps-ui-kit-preview.deploy.yml b/.github/workflows/apps-ui-kit-preview.deploy.yml index 27cef00871c..69d291da58f 100644 --- a/.github/workflows/apps-ui-kit-preview.deploy.yml +++ b/.github/workflows/apps-ui-kit-preview.deploy.yml @@ -33,7 +33,7 @@ jobs: - name: Install Vercel CLI run: pnpm add --global vercel@canary - name: Pull Vercel Environment Information - run: vercel pull ./apps/ui-kit --yes --environment=preview --token=${{ secrets.VERCEL_TOKEN }} + run: vercel pull --cwd ./apps/ui-kit --yes --environment=preview --token=${{ secrets.VERCEL_TOKEN }} - name: Build Project Artifacts run: vercel build --cwd ./apps/ui-kit --token=${{ secrets.VERCEL_TOKEN }} - name: Deploy Project Artifacts to Vercel diff --git a/.github/workflows/apps-ui-kit-production.deploy.yml b/.github/workflows/apps-ui-kit-production.deploy.yml index 3479b9d58ac..f1d50fe5161 100644 --- a/.github/workflows/apps-ui-kit-production.deploy.yml +++ b/.github/workflows/apps-ui-kit-production.deploy.yml @@ -30,9 +30,9 @@ jobs: - name: Install Vercel CLI run: pnpm add --global vercel@canary - name: Pull Vercel Environment Information - run: vercel pull ./apps/ui-kit --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }} + run: vercel pull --cwd ./apps/ui-kit --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }} - name: Build Project Artifacts - run: vercel build --cwd ./apps/ui-kit --token=${{ secrets.VERCEL_TOKEN }} + run: vercel build --prod --cwd ./apps/ui-kit --token=${{ secrets.VERCEL_TOKEN }} - name: Deploy Project Artifacts to Vercel run: vercel deploy --cwd ./apps/ui-kit --prod --prebuilt --token=${{ secrets.VERCEL_TOKEN }} > vercel_output.txt - name: Extract Deploy URL