From d0634dbf0bd41ea6e66155a216d6492cd03ccc1d Mon Sep 17 00:00:00 2001 From: Lucid Kobold Date: Wed, 3 Sep 2025 12:48:02 -0400 Subject: [PATCH 1/6] Added vercel to actions. --- .github/workflows/vercel-preview.yaml | 21 +++++++++++++++++++++ .github/workflows/vercel-production.yaml | 21 +++++++++++++++++++++ 2 files changed, 42 insertions(+) create mode 100644 .github/workflows/vercel-preview.yaml create mode 100644 .github/workflows/vercel-production.yaml diff --git a/.github/workflows/vercel-preview.yaml b/.github/workflows/vercel-preview.yaml new file mode 100644 index 0000000..f75c963 --- /dev/null +++ b/.github/workflows/vercel-preview.yaml @@ -0,0 +1,21 @@ +name: Vercel Preview Deployment +env: + VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }} + VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }} +on: + push: + branches-ignore: + - main +jobs: + Deploy-Preview: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Install Vercel CLI + run: npm install --global vercel@latest + - name: Pull Vercel Environment Information + run: vercel pull --yes --environment=preview --token=${{ secrets.VERCEL_TOKEN }} + - name: Build Project Artifacts + run: vercel build --token=${{ secrets.VERCEL_TOKEN }} + - name: Deploy Project Artifacts to Vercel + run: vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }} diff --git a/.github/workflows/vercel-production.yaml b/.github/workflows/vercel-production.yaml new file mode 100644 index 0000000..727b98b --- /dev/null +++ b/.github/workflows/vercel-production.yaml @@ -0,0 +1,21 @@ +name: Vercel Production Deployment +env: + VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }} + VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }} +on: + push: + branches: + - main +jobs: + Deploy-Production: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Install Vercel CLI + run: npm install --global vercel@latest + - name: Pull Vercel Environment Information + run: vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }} + - name: Build Project Artifacts + run: vercel build --prod --token=${{ secrets.VERCEL_TOKEN }} + - name: Deploy Project Artifacts to Vercel + run: vercel deploy --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }} From 6322430ac77fc682fcda1eee0a97f8d66af2dd79 Mon Sep 17 00:00:00 2001 From: Lucid Kobold Date: Wed, 3 Sep 2025 12:52:00 -0400 Subject: [PATCH 2/6] Update main CI file. --- .github/workflows/main.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index c5ad6a7..26b4665 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -20,8 +20,6 @@ jobs: node-version: [18.x, 20.x, 22.x] # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ steps: - - uses: actions/checkout@v4 - - name: "Base requirements" run: | # packages From b070f45ebafedf5518ca58af2e00a977e6fc0de8 Mon Sep 17 00:00:00 2001 From: Lucid Kobold Date: Wed, 3 Sep 2025 12:54:58 -0400 Subject: [PATCH 3/6] Update main CI file. --- .github/workflows/main.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 26b4665..cf22ffe 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -20,6 +20,8 @@ jobs: node-version: [18.x, 20.x, 22.x] # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ steps: + - uses: actions/checkout@v4 + - name: "Base requirements" run: | # packages @@ -49,4 +51,3 @@ jobs: run: yarn lint # will run `yarn lint` command - name: "Build Code" run: yarn run build # will run `yarn build` command - \ No newline at end of file From 85f54b010588c32704777f8b6e578c21a88bc1dc Mon Sep 17 00:00:00 2001 From: Lucid Kobold Date: Wed, 3 Sep 2025 13:00:06 -0400 Subject: [PATCH 4/6] Update vercel action files --- .github/workflows/vercel-preview.yaml | 7 +++++-- .github/workflows/vercel-production.yaml | 1 + 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/vercel-preview.yaml b/.github/workflows/vercel-preview.yaml index f75c963..a812b78 100644 --- a/.github/workflows/vercel-preview.yaml +++ b/.github/workflows/vercel-preview.yaml @@ -3,9 +3,12 @@ env: VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }} VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }} on: + # Trigger the workflow on push or pull request, push: - branches-ignore: - - main + branches: [main, stable] + pull_request: + # These types of PRs + types: [opened, synchronize, reopened] jobs: Deploy-Preview: runs-on: ubuntu-latest diff --git a/.github/workflows/vercel-production.yaml b/.github/workflows/vercel-production.yaml index 727b98b..2bc2d32 100644 --- a/.github/workflows/vercel-production.yaml +++ b/.github/workflows/vercel-production.yaml @@ -6,6 +6,7 @@ on: push: branches: - main + - stable jobs: Deploy-Production: runs-on: ubuntu-latest From 83ff36c2f9a260bd1199ec1bfc1d13e7ad6eb43a Mon Sep 17 00:00:00 2001 From: Lucid Kobold Date: Wed, 3 Sep 2025 13:03:16 -0400 Subject: [PATCH 5/6] Update vercel action files --- .github/workflows/vercel-preview.yaml | 8 ++++---- .github/workflows/vercel-production.yaml | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/vercel-preview.yaml b/.github/workflows/vercel-preview.yaml index a812b78..1059960 100644 --- a/.github/workflows/vercel-preview.yaml +++ b/.github/workflows/vercel-preview.yaml @@ -14,11 +14,11 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - name: Install Vercel CLI + - name: "Install Vercel CLI" run: npm install --global vercel@latest - - name: Pull Vercel Environment Information + - name: "Pull Vercel Environment Information" run: vercel pull --yes --environment=preview --token=${{ secrets.VERCEL_TOKEN }} - - name: Build Project Artifacts + - name: "Build Project Artifacts" run: vercel build --token=${{ secrets.VERCEL_TOKEN }} - - name: Deploy Project Artifacts to Vercel + - name: "Deploy Project Artifacts to Vercel" run: vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }} diff --git a/.github/workflows/vercel-production.yaml b/.github/workflows/vercel-production.yaml index 2bc2d32..67059d5 100644 --- a/.github/workflows/vercel-production.yaml +++ b/.github/workflows/vercel-production.yaml @@ -12,11 +12,11 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - name: Install Vercel CLI + - name: "Install Vercel CLI" run: npm install --global vercel@latest - - name: Pull Vercel Environment Information + - name: "Pull Vercel Environment Information" run: vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }} - - name: Build Project Artifacts + - name: "Build Project Artifacts" run: vercel build --prod --token=${{ secrets.VERCEL_TOKEN }} - - name: Deploy Project Artifacts to Vercel + - name: "Deploy Project Artifacts to Vercel" run: vercel deploy --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }} From 21d17d4a06adc8a37df6620165271bf5255d128f Mon Sep 17 00:00:00 2001 From: Lucid Kobold Date: Wed, 3 Sep 2025 13:04:16 -0400 Subject: [PATCH 6/6] Update vercel action files --- .github/workflows/vercel-preview.yaml | 2 +- .github/workflows/vercel-production.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/vercel-preview.yaml b/.github/workflows/vercel-preview.yaml index 1059960..a94518b 100644 --- a/.github/workflows/vercel-preview.yaml +++ b/.github/workflows/vercel-preview.yaml @@ -11,7 +11,7 @@ on: types: [opened, synchronize, reopened] jobs: Deploy-Preview: - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 steps: - uses: actions/checkout@v2 - name: "Install Vercel CLI" diff --git a/.github/workflows/vercel-production.yaml b/.github/workflows/vercel-production.yaml index 67059d5..dc12a86 100644 --- a/.github/workflows/vercel-production.yaml +++ b/.github/workflows/vercel-production.yaml @@ -9,7 +9,7 @@ on: - stable jobs: Deploy-Production: - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 steps: - uses: actions/checkout@v2 - name: "Install Vercel CLI"