fix(api): enhance error handling for encrypted PDFs in NDA processing… #904
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: Deploy to Trigger.dev (dev) | |
| on: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| deploy: | |
| runs-on: warp-ubuntu-latest-arm64-4x | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Use Node.js 20.x | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: "22.x" # Updated to match Node.js w/ Vercel | |
| - name: Setup Bun | |
| uses: oven-sh/setup-bun@v2 | |
| - name: Clear cache | |
| run: rm -rf node_modules .bun | |
| - name: Install dependencies | |
| run: bun install --frozen-lockfile || bun install --frozen-lockfile --ignore-scripts | |
| - name: Install DB package dependencies | |
| working-directory: ./packages/db | |
| run: bun install --frozen-lockfile --ignore-scripts | |
| - name: Install Email package dependencies | |
| working-directory: ./packages/email | |
| run: bun install --frozen-lockfile --ignore-scripts | |
| - name: Install Integration Platform package dependencies | |
| working-directory: ./packages/integration-platform | |
| run: bun install --frozen-lockfile --ignore-scripts | |
| - name: Build DB package | |
| working-directory: ./packages/db | |
| run: bun run build | |
| - name: Build Integration Platform package | |
| working-directory: ./packages/integration-platform | |
| run: bun run build | |
| - name: Copy schema to app and generate client | |
| working-directory: ./apps/app | |
| run: | | |
| mkdir -p prisma | |
| cp ../../packages/db/dist/schema.prisma prisma/schema.prisma | |
| bunx prisma generate | |
| - name: 🚀 Deploy Trigger.dev | |
| working-directory: ./apps/app | |
| timeout-minutes: 20 | |
| env: | |
| TRIGGER_ACCESS_TOKEN: ${{ secrets.TRIGGER_ACCESS_TOKEN }} | |
| SECRET_KEY: ${{ secrets.SECRET_KEY }} | |
| VERCEL_ACCESS_TOKEN: ${{ secrets.VERCEL_ACCESS_TOKEN }} | |
| VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }} | |
| VERCEL_TEAM_ID: ${{ secrets.VERCEL_TEAM_ID }} | |
| run: bunx trigger.dev@4.0.6 deploy --env staging --log-level debug |