docs: setup clerk and knock #65
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: Deploy preview | |
on: | |
pull_request: | |
branches: [main] | |
jobs: | |
deploy-preview: | |
runs-on: ubuntu-latest | |
env: | |
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }} | |
DATABASE_URL: ${{ secrets.PREVIEW_DATABASE_URL }} | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: pnpm/action-setup@v2 | |
- run: pnpm i | |
- run: pnpm run lint | |
- run: pnpm run typecheck | |
- run: pnpm run --filter @dinstack/api db:migrate | |
- run: pnpm run deploy:preview |