name: Check Types and Build on: # Build on pushes to branches that have a PR (including drafts) pull_request: # Build on pushes to the main branch push: branches: - main concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true permissions: contents: read jobs: build: runs-on: ubuntu-latest env: TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} TURBO_TEAM: ${{ vars.TURBO_TEAM }} steps: - uses: actions/checkout@v7 # Node 24: postbuild runs .ts scripts directly via built-in type stripping - name: Setup Environment uses: ./.github/actions/setup with: node-version: 24 - name: Set Turbo cache bypass on rerun if: github.run_attempt > 1 run: echo "TURBO_FORCE=true" >> $GITHUB_ENV - name: Typecheck run: pnpm check:types - name: Build CLI run: pnpm build:cli