Reduce contention on batchTaskRun when setting expected count #2075
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: 🤖 PR Checks | |
| on: | |
| pull_request: | |
| types: [opened, synchronize, reopened] | |
| paths-ignore: | |
| - "docs/**" | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: read | |
| id-token: write | |
| jobs: | |
| typecheck: | |
| uses: ./.github/workflows/typecheck.yml | |
| secrets: inherit | |
| units: | |
| uses: ./.github/workflows/unit-tests.yml | |
| secrets: inherit | |
| e2e: | |
| uses: ./.github/workflows/e2e.yml | |
| with: | |
| package: cli-v3 | |
| secrets: inherit | |
| preview-release: | |
| name: Preview Release | |
| needs: [typecheck, units, e2e] | |
| if: github.repository == 'triggerdotdev/trigger.dev' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: ⬇️ Checkout repo | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: ⎔ Setup pnpm | |
| uses: pnpm/action-setup@v4 | |
| with: | |
| version: 8.15.5 | |
| - name: ⎔ Setup node | |
| uses: buildjet/setup-node@v4 | |
| with: | |
| node-version: 20.11.1 | |
| cache: "pnpm" | |
| - name: 📥 Download deps | |
| run: pnpm install --frozen-lockfile | |
| - name: 🏗️ Build | |
| run: pnpm run build --filter "@trigger.dev/*" --filter "trigger.dev" | |
| - name: ⚡ Publish preview release | |
| run: npx pkg-pr-new publish --no-template $(ls -d ./packages/*) |