fix(web): include cookie declarations in package (#2985) #46
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: Size | |
| # Tracks tree-shaken scenario costs per PR (#2883). scripts/size/ is a | |
| # standalone npm package OUTSIDE the pnpm workspace on purpose: adding its | |
| # tooling to the workspace graph re-keys pnpm peer instances (vitest, | |
| # @codspeed/vitest-plugin), which relocates the benchmark harness and shows | |
| # up as phantom CodSpeed regressions. The limits in size/.size-limit.js are | |
| # the strict tree-shaking gate; the retained-module-graph assertions in | |
| # packages/solid-signals/tests/treeshake.test.ts stay the which-module | |
| # diagnostic underneath. | |
| # The check job also runs on direct pushes to next: it is self-contained | |
| # (absolute limits, no base ref), and PR-only triggering let the | |
| # +createStore scenario sit failing at a release commit unnoticed — direct | |
| # pushes never measured. The compare job stays PR-only; it needs a PR | |
| # context (base branch, comment target). | |
| on: | |
| push: | |
| branches: [next] | |
| pull_request: | |
| branches: [main, next] | |
| permissions: | |
| contents: read | |
| pull-requests: write | |
| jobs: | |
| # The hard gate: self-contained on the PR head, fails when any scenario | |
| # exceeds its limit. Never depends on the base branch. | |
| check: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: pnpm/action-setup@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version-file: ".nvmrc" | |
| cache: pnpm | |
| - run: pnpm install --frozen-lockfile | |
| - run: pnpm build | |
| - run: npm ci --no-audit --no-fund | |
| working-directory: scripts/size | |
| - run: npm run size | |
| working-directory: scripts/size | |
| # Best-effort base-vs-head delta comment. Requires the base branch to also | |
| # carry scripts/size/, so it is informational and never blocks: continue-on-error | |
| # keeps bootstrap PRs (and any action hiccup) green. PR events only — the | |
| # action resolves the PR base ref and posts a PR comment, neither of which | |
| # exists on a push event. | |
| compare: | |
| if: github.event_name == 'pull_request' | |
| runs-on: ubuntu-latest | |
| continue-on-error: true | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: pnpm/action-setup@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version-file: ".nvmrc" | |
| cache: pnpm | |
| - uses: andresz1/size-limit-action@v1 | |
| continue-on-error: true | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| package_manager: npm | |
| directory: scripts/size | |
| build_script: build |