From 9c49500ce100d898da075df41060ce64ee9eeb9b Mon Sep 17 00:00:00 2001 From: Gildas Garcia <1122076+djhi@users.noreply.github.com> Date: Tue, 30 Jun 2026 14:20:47 +0200 Subject: [PATCH] chore: add CI job to validate `ui-patterns` exports (#47408) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Problem `ui-patterns` exports its components under a subpath (see its `package.json`). This is easy to forget when adding a new component. ## Solution Add a CI job that validate the exports are corrects ## Summary by CodeRabbit * **Tests** * Added a new “Validate exports” step to the UI patterns pipeline to ensure generated exports remain in sync. * When discrepancies are detected, the workflow outputs the diff and fails immediately to prevent stale artifacts. --------- Co-authored-by: Ivan Vasilov --- .github/workflows/ui-patterns-tests.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/ui-patterns-tests.yml b/.github/workflows/ui-patterns-tests.yml index 4b75674a3d7..4c2655def57 100644 --- a/.github/workflows/ui-patterns-tests.yml +++ b/.github/workflows/ui-patterns-tests.yml @@ -40,5 +40,13 @@ jobs: - name: Install deps run: pnpm install --frozen-lockfile + - name: Validate exports + run: | + pnpm --filter ui-patterns gen:exports + if ! git diff --ignore-space-at-eol --exit-code --quiet packages/ui-patterns/package.json then + echo "Detected uncommitted changes after build. Run pnpm --filter ui-patterns gen:exports to fix it." + git diff + exit 1 + fi - name: Run tests run: pnpm run test:ui-patterns