Skip to content
This repository was archived by the owner on May 15, 2026. It is now read-only.

Commit e52a743

Browse files
committed
Add quality checks to marketing site deployment workflows
1 parent 953c777 commit e52a743

2 files changed

Lines changed: 50 additions & 4 deletions

File tree

.github/workflows/website-deploy.yml

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ on:
88
- 'apps/web-roo-code/**'
99
workflow_dispatch:
1010

11+
concurrency:
12+
group: deploy-roocode-com
13+
cancel-in-progress: true
14+
1115
env:
1216
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
1317
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
@@ -27,17 +31,36 @@ jobs:
2731
echo "has-vercel-token=false" >> $GITHUB_OUTPUT
2832
fi
2933
30-
deploy:
34+
quality-checks:
3135
runs-on: ubuntu-latest
3236
needs: check-secrets
3337
if: ${{ needs.check-secrets.outputs.has-vercel-token == 'true' }}
38+
defaults:
39+
run:
40+
working-directory: apps/web-roo-code
41+
steps:
42+
- name: Checkout code
43+
uses: actions/checkout@v4
44+
- name: Setup Node.js and pnpm
45+
uses: ./.github/actions/setup-node-pnpm
46+
- name: Run lint
47+
run: pnpm run lint
48+
- name: Run type check
49+
run: pnpm run check-types
50+
- name: Run build
51+
run: pnpm run build
52+
53+
deploy:
54+
runs-on: ubuntu-latest
55+
needs: [check-secrets, quality-checks]
56+
if: ${{ needs.check-secrets.outputs.has-vercel-token == 'true' }}
3457
steps:
3558
- name: Checkout code
3659
uses: actions/checkout@v4
3760
- name: Setup Node.js and pnpm
3861
uses: ./.github/actions/setup-node-pnpm
3962
- name: Install Vercel CLI
40-
run: npm install --global vercel@canary
63+
run: npm install --global vercel@latest
4164
- name: Pull Vercel Environment Information
4265
run: npx vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }}
4366
- name: Build Project Artifacts

.github/workflows/website-preview.yml

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ on:
1111
- "apps/web-roo-code/**"
1212
workflow_dispatch:
1313

14+
concurrency:
15+
group: preview-roocode-com-${{ github.ref }}
16+
cancel-in-progress: true
17+
1418
env:
1519
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
1620
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
@@ -30,17 +34,36 @@ jobs:
3034
echo "has-vercel-token=false" >> $GITHUB_OUTPUT
3135
fi
3236
33-
preview:
37+
quality-checks:
3438
runs-on: ubuntu-latest
3539
needs: check-secrets
3640
if: ${{ needs.check-secrets.outputs.has-vercel-token == 'true' }}
41+
defaults:
42+
run:
43+
working-directory: apps/web-roo-code
44+
steps:
45+
- name: Checkout code
46+
uses: actions/checkout@v4
47+
- name: Setup Node.js and pnpm
48+
uses: ./.github/actions/setup-node-pnpm
49+
- name: Run lint
50+
run: pnpm run lint
51+
- name: Run type check
52+
run: pnpm run check-types
53+
- name: Run build
54+
run: pnpm run build
55+
56+
preview:
57+
runs-on: ubuntu-latest
58+
needs: [check-secrets, quality-checks]
59+
if: ${{ needs.check-secrets.outputs.has-vercel-token == 'true' }}
3760
steps:
3861
- name: Checkout code
3962
uses: actions/checkout@v4
4063
- name: Setup Node.js and pnpm
4164
uses: ./.github/actions/setup-node-pnpm
4265
- name: Install Vercel CLI
43-
run: npm install --global vercel@canary
66+
run: npm install --global vercel@latest
4467
- name: Pull Vercel Environment Information
4568
run: npx vercel pull --yes --environment=preview --token=${{ secrets.VERCEL_TOKEN }}
4669
- name: Build Project Artifacts

0 commit comments

Comments
 (0)