Skip to content

Commit 2ae439e

Browse files
committed
update ci.yml
1 parent 47e5169 commit 2ae439e

1 file changed

Lines changed: 10 additions & 6 deletions

File tree

.github/workflows/ci.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,29 +20,33 @@ jobs:
2020
cache: 'npm'
2121

2222
- name: 📦 Install Dependencies
23-
# Using 'install' instead of 'ci' to handle the fresh repo setup
23+
# Using 'install' instead of 'ci' to handle initial setup
24+
# while ensuring your Tailwind 4 plugins are correctly loaded.
2425
run: npm install
2526

26-
- name: 🔍 TypeScript Type Check
27-
# Using the build command you have in package.json
27+
- name: 🔍 Production Build & Type Check
28+
# This triggers 'tsc -b && vite build' from your package.json scripts.
29+
# It's the most effective way to verify your TS and Vite config.
2830
run: npm run build
2931

3032
- name: 🎨 Lint Check
31-
# Allowing lint to pass even with warnings to keep the flow moving
32-
run: npm run lint || echo "Linting warnings found, moving to build..."
33+
# This will run but won't crash the deployment if there are only warnings.
34+
run: npm run lint || echo "Linting warnings found, moving to deploy..."
3335

3436
deploy:
3537
name: 🌐 Deploy to Vercel
3638
needs: quality-control
39+
# Only deploy if pushing to the main branch
3740
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
3841
runs-on: ubuntu-latest
3942
steps:
4043
- name: 🛰️ Checkout Code
4144
uses: actions/checkout@v4
45+
4246
- name: 🚀 Deploy to Vercel
4347
uses: amondnet/vercel-action@v20
4448
with:
4549
vercel-token: ${{ secrets.VERCEL_TOKEN }}
4650
vercel-org-id: ${{ secrets.VERCEL_ORG_ID }}
4751
vercel-project-id: ${{ secrets.VERCEL_PROJECT_ID }}
48-
vercel-args: '--prod'
52+
vercel-args: '--prod'

0 commit comments

Comments
 (0)