ci: skip typecheck for refs and non-code file PRs (#3624)

Follow-up to #3615. The `code` filter currently fires typecheck for any
change outside `docs/`, `.changeset/`, `hosting/`, or `.github/` - so a
docs-only PR like #3623 (touching `references/ai-chat/.env.example` +
`README.md`) triggered the typecheck job. None of the `references/*`
packages declare a `typecheck` script either, so even when a real code
change lands there, `turbo run typecheck` skips them. Running the job is
pure cost.

Tightens the filter to also exclude:

- `references/**` - playground projects, none of them contribute to
`turbo run typecheck` today
- `**/*.md` - markdown anywhere
- `**/.env.example` - example env files anywhere

Two known gaps left open:

- references/ have no real CI typecheck coverage. Separate question -
either add `typecheck` scripts to each (or top-level `tsc -p`), or
accept playground status.
- `changes` job still runs (it's a path-filter step) but the dependent
jobs all skip on irrelevant PRs.
This commit is contained in:
nicktrn
2026-05-14 19:36:09 +01:00
committed by GitHub
parent e59291e35f
commit 0510fd6661
+3
View File
@@ -34,6 +34,9 @@ jobs:
- '!.changeset/**'
- '!hosting/**'
- '!.github/**'
- '!references/**'
- '!**/*.md'
- '!**/.env.example'
- '.github/workflows/pr_checks.yml'
- '.github/workflows/typecheck.yml'
webapp: