Skip to content

update agents.md for fully autonomous re-write using React 19, TypeSc… #4

update agents.md for fully autonomous re-write using React 19, TypeSc…

update agents.md for fully autonomous re-write using React 19, TypeSc… #4

Workflow file for this run

name: Next.js CI/CD
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '18'
cache: 'npm'
- name: Install Dependencies
run: npm ci
- name: Update browserslist db
run: npx -y browserslist@latest --update-db
- name: Lint Code
run: npm run lint --if-present
- name: Build Application
run: npm run build
env:
GOOGLE_CIVIC_API_KEY: ${{ secrets.GOOGLE_CIVIC_API_KEY }}
deploy:
needs: build-and-test
if: github.ref == 'refs/heads/master' && github.event_name == 'push'
runs-on: ubuntu-latest
steps:
- name: Deploy to Vercel
uses: amondnet/vercel-action@v20
with:
vercel-token: ${{ secrets.VERCEL_TOKEN }}
vercel-org-id: ${{ secrets.VERCEL_ORG_ID }}
vercel-project-id: ${{ secrets.VERCEL_PROJECT_ID }}
vercel-args: '--prod'