Skip to content

ci(cli): gate PRs and deploy on CLI strict typecheck - #4297

Merged
josephfarina merged 1 commit into
mainfrom
ci/cli-strict-typecheck-gate
Jul 24, 2026
Merged

josephfarina merged 1 commit into
mainfrom
ci/cli-strict-typecheck-gate

Conversation

@josephfarina

Copy link
Copy Markdown
Contributor

Summary

  • Wires the CLI's full-package strict checkJs typecheck (pnpm -F @astryxdesign/cli typecheck:strict, backed by tsconfig.strict.json) into CI as a required gate — the follow-up feat(cli): add opt-in strict checkJs typecheck command #4275 promised once the tree was strict-clean, now unblocked by fix(cli): make .mjs sources fully strict-typecheckable (checkJs + JSDoc, 1717 → 0) #4283 driving strict errors from 1717 → 0.
  • Added to two places, mirroring the repo's existing typecheck-gate convention:
    • ci.yml → build-storybook job (runs on PRs and the merge queue), folded into the historical build check.
    • deploy.yml → test job (runs on push to main, gating the deploy) — matching the in-file note that deploy mirrors the PR typecheck gates so a type error can't land on main undetected.
  • Both jobs already run pnpm build before the typecheck steps, which strict typecheck requires: the emitted template .tsx files import built workspace packages, so they need @astryxdesign/{core,charts,lab} dist types to resolve.
  • Updates packages/cli/CONTRIBUTING.md, which previously documented this as "not yet wired into CI."

Verification

Ran the exact CI sequence locally on main (clean CI=true pnpm install --frozen-lockfile → pnpm build → pnpm -F @astryxdesign/cli typecheck:strict): passes with zero errors, so the new gate is green on the current tree.

Notes

  • No changeset — this touches only CI workflows and the unpublished CLI CONTRIBUTING.md; no publishable package source changes.

Test plan

  • PR CI (build) runs the new Typecheck CLI (strict) step and passes.
  • Confirm the step is skipped on docsite-only PRs (guarded by docsite_only).
  • After merge, the Deploy workflow's test job runs the strict typecheck before publishing.

Made with Cursor

Wire `pnpm -F @astryxdesign/cli typecheck:strict` (full-package strict
checkJs over src, bin, scripts, docs, and the emitted templates) into CI
as a required gate — the follow-up #4275 promised once the tree was clean,
now unblocked by #4283 driving strict errors to zero.

Mirrors the repo's existing typecheck-gate convention: added to the
build-storybook job in ci.yml (PRs + merge queue) and the test job in
deploy.yml (push to main / deploy). Both jobs already run `pnpm build`
first, which strict typecheck requires so the template .tsx sources can
resolve the built @astryxdesign/{core,charts,lab} types.

Also updates packages/cli/CONTRIBUTING.md, which documented this as
"not yet wired into CI."

Co-authored-by: Cursor <[email protected]>
@vercel

vercel Bot commented Jul 24, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
astryx Ready Ready Preview, Comment Jul 24, 2026 8:36pm

Request Review

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Jul 24, 2026
github-actions Bot added a commit that referenced this pull request Jul 24, 2026
@github-actions

Copy link
Copy Markdown
Contributor

PR Analysis Report

📚 Storybook Preview

View Storybook for this PR
GitHub Pages may take up to a minute to hydrate after deploy.

🧪 Sandbox Preview

View Sandbox for this PR
GitHub Pages may take up to a minute to hydrate after deploy.

No new or modified components detected.

Bundle Size Summary

Package Size (ESM) Size (CJS) Gzipped
@astryxdesign/core N/A 4.7KB 0B

Accessibility Audit

Status: No accessibility violations detected.


Generated by PR Enrichment workflow | Storybook | Sandbox | View full report

@josephfarina
josephfarina merged commit df3106c into main Jul 24, 2026
18 checks passed
@josephfarina
josephfarina deleted the ci/cli-strict-typecheck-gate branch July 24, 2026 20:51

This branch was successfully deployed

1 active deployment
Preview — 414ac2e1 Deployed Jul 24, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant