From ab24b4a602f8e849d96122a8aefd93deb6ddd88e Mon Sep 17 00:00:00 2001 From: 0xMillz <37815163+0xMillz@users.noreply.github.com> Date: Thu, 7 Nov 2024 12:11:40 -0600 Subject: [PATCH] Get token before build --- .github/workflows/preview.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/preview.yaml b/.github/workflows/preview.yaml index 59d9f181..154f2e16 100644 --- a/.github/workflows/preview.yaml +++ b/.github/workflows/preview.yaml @@ -8,6 +8,7 @@ on: pull_request: types: [opened, synchronize, reopened] +jobs: jobs: Deploy-Preview: runs-on: ubuntu-latest @@ -27,6 +28,8 @@ jobs: - name: Install pnpm and Vercel CLI run: | npm install -g pnpm vercel@canary + - name: Pull Vercel Environment Information + run: vercel pull --yes --token=${{ secrets.VERCEL_TOKEN }} - name: Build Project Artifacts run: vercel build --token=${{ secrets.VERCEL_TOKEN }} - name: Deploy Project Artifacts to Vercel