fix: Ensure no API calls are made until we're certain the user has been created #273
This file contains 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: pr-checks | |
on: | |
pull_request: | |
branches: [main] | |
env: | |
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }} | |
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }} | |
jobs: | |
check-build: | |
name: Lint and build check | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Setup environment | |
uses: ./.github/actions/setup-composite | |
- run: pnpm format:check | |
- run: pnpm typecheck | |
verify-env-vars: | |
name: Verify environment variables are on dev and prod | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Setup environment | |
uses: ./.github/actions/setup-composite | |
- name: Check env vars for development | |
run: | | |
vercel env pull .env --yes --environment=development --token=${{ secrets.VERCEL_TOKEN }} | |
pnpm -F api check-env-vars | |
- name: Check env vars for production | |
run: | | |
vercel env pull .env --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }} | |
pnpm -F api check-env-vars |