chore: add CI workflow, issue/PR templates, package.json metadata #2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| branches: [master] | |
| pull_request: | |
| branches: [master] | |
| concurrency: | |
| group: ci-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| build: | |
| name: typecheck / lint / build | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 15 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Set up Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20' | |
| cache: 'npm' | |
| - name: Install dependencies | |
| run: npm ci --no-audit --no-fund | |
| - name: Typecheck | |
| run: npm run typecheck | |
| - name: Lint | |
| run: npm run lint | |
| - name: Build | |
| run: npm run build | |
| env: | |
| # Build expects these to be defined; supply harmless local-style defaults | |
| # so a fresh fork can still verify the pipeline without prod secrets. | |
| VITE_SUPABASE_ANON_KEY: ci-placeholder-anon-key | |
| VITE_SUPABASE_URL: http://127.0.0.1:54321 | |
| VITE_POSTHOG_PROJECT_KEY: ci-placeholder-posthog | |
| VITE_SENTRY_ENVIRONMENT: ci | |
| VITE_SENTRY_DSN: '' |