Skip to content

Update wrangler.jsonc #1866

Update wrangler.jsonc

Update wrangler.jsonc #1866

Workflow file for this run

name: CI
on:
push:
branches: [main, dev]
pull_request:
workflow_dispatch:
jobs:
build:
name: Lint, typecheck, test, build
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
- name: Install
run: npm ci --legacy-peer-deps
- name: Lint
run: npm run lint
- name: Typecheck
run: npm run typecheck
- name: Test
run: npm test
- name: Build
env:
NEXT_TELEMETRY_DISABLED: 1
SESSION_SECRET: ci_only_session_secret_at_least_32_characters
run: npm run build
- name: Bundle size check
run: |
if [ -d .next ]; then
echo "Bundle sizes:"
find .next/static/chunks -name "*.js" -size +200k -exec du -h {} \;
fi
deploy-preview:
name: Vercel preview
if: github.event_name == 'pull_request'
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- name: Install Vercel CLI
run: npm install -g vercel@latest
- name: Pull Vercel config
run: vercel pull --yes --environment=preview --token=${{ secrets.VERCEL_TOKEN }}
- name: Build for Vercel
run: vercel build --token=${{ secrets.VERCEL_TOKEN }}
- name: Deploy preview
run: vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }}