name: Bundle Stats on: pull_request: concurrency: group: ${{ github.workflow }}-${{ github.head_ref }} cancel-in-progress: true permissions: contents: read pull-requests: write jobs: bundle-stats: continue-on-error: true timeout-minutes: 30 runs-on: ubuntu-latest env: TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} TURBO_TEAM: ${{ vars.TURBO_TEAM }} steps: - uses: actions/checkout@v7 - name: Setup Environment uses: ./.github/actions/setup with: node-version: 24 - uses: rexxars/bundle-stats@da18d66289d0c5ce34eb0140755d96f5b689f69b # v1.11.4 with: packages: packages/@sanity/cli, packages/@sanity/cli-core, packages/@sanity/cli-build, packages/create-sanity # Reset state per checked-out ref: node_modules otherwise stays at the # head ref's dependency tree (dependency bumps measure as zero delta), # and turbo restores cached outputs without pruning files the other # ref's build left in dist. build-command: pnpm clean && pnpm install --frozen-lockfile && pnpm build:cli # _internal/** covers cli-build, which has no root export; with a # bare '.' the action fails with "No exports or bin entries matched" only: '., _internal/**'