Skip to content

ci: add pull_request checks (actionlint + package typecheck) - #20

Merged
m4sterbunny merged 2 commits into
mainfrom
ci/add-pr-checks
Aug 14, 2026
Merged

ci: add pull_request checks (actionlint + package typecheck)#20
m4sterbunny merged 2 commits into
mainfrom
ci/add-pr-checks

Conversation

@m4sterbunny

@m4sterbunny m4sterbunny commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

Summary 🤖 Generated with Claude Code

  • Adds an MVP pull_request-triggered workflow (.github/workflows/pr-checks.yml).

Before this PR: the only workflow, publish-packages.yml, ran on push to main — no Automated correctness check, only org-level security scanning

  • actionlint job: lints workflow YAML on every PR.
  • typecheck job: runs tsc --noEmit per published package (docs-seo-schema, docs-seo-core, docs-seo-next, docs-seo-og) using each package's own tsconfig.json.

Catches broken exports and peer-dependency type drift (e.g. a Dependabot bump changing a fumadocs-core/next/react peer's types) before merge, instead of only surfacing when a consumer like upgrades and breaks.

Follow-up from tetherto/docs-template#19, which flagged that no functional CI validates changes here.

Test plan

  • npm ci verified locally
  • tsc --noEmit verified passing locally for all 4 packages
  • actionlint job passes in CI (no local actionlint available to pre-verify)

🤖 Generated with Claude Code

No workflow in this repo previously ran on pull_request — only
publish-packages.yml, which triggers on push to main. This PR adds an
MVP PR check that:
- runs actionlint over workflow files
- runs `tsc --noEmit` for each of the 4 published packages
  (docs-seo-schema, docs-seo-core, docs-seo-next, docs-seo-og)

It catches broken exports and peer-dependency type drift (e.g. from a
Dependabot bump) before merge instead of only when a consumer like
mdk-docs upgrades and breaks.

🤖 Generated with Claude Code
@m4sterbunny
m4sterbunny requested a review from a team as a code owner August 13, 2026 15:40
npm ci failed in CI: fumadocs-mdx's postinstall imports package .ts
source directly, which requires Node's native TypeScript support
(unflagged since Node 23). Node 20 throws ERR_UNKNOWN_FILE_EXTENSION.

Reproduced locally under Node 20 (fails) and Node 24 (passes, matches
mdk-docs' own pinned Node version and engines field).

Note: publish-packages.yml is also pinned to Node 20 and would hit the
same failure if it ever ran `npm ci` — it currently doesn't, so it's
latent, not fixed here (out of scope for this PR).

🤖 Generated with Claude Code
@m4sterbunny
m4sterbunny merged commit 027ff13 into main Aug 14, 2026
10 checks passed
@m4sterbunny
m4sterbunny deleted the ci/add-pr-checks branch August 14, 2026 11:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants