From 1021624d67212010fa42d88e1e2bf83b83181ac0 Mon Sep 17 00:00:00 2001 From: Evgenii Alaev Date: Thu, 12 Nov 2026 16:48:07 +0100 Subject: [PATCH 1/2] ci: check the build on pull requests test:build ran only in prepublishOnly, so a broken build showed up at publish time. A Check Build job builds the package and runs it; the React 18 job runs it after its build. --- .github/workflows/ci.yaml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index abf3919c..f0abc389 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -44,6 +44,25 @@ jobs: - name: Unit Tests run: npm run test + # Loads both builds through the package exports and checks that every import is declared. + check_build: + name: Check Build + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Setup Node + uses: actions/setup-node@v4 + with: + node-version-file: '.nvmrc' + cache: 'npm' + - name: Install Packages + run: npm ci + - name: Build + run: npm run build + - name: Check Build + run: npm run test:build + # Validate the lower edge of the React peer range. Runs only on # release-please PRs so regular PR CI stays fast; failure here blocks # the release before it can be tagged and published. @@ -73,3 +92,5 @@ jobs: run: npm run test - name: Build run: npm run build + - name: Check Build + run: npm run test:build From e9be77a935b5a1a95c7f3fca43b062f0746bfc07 Mon Sep 17 00:00:00 2001 From: Evgenii Alaev Date: Thu, 12 Nov 2026 17:08:56 +0100 Subject: [PATCH 2/2] ci: keep the build check in its own job only The React 18 job does not need a second run of test:build. --- .github/workflows/ci.yaml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index f0abc389..abd4d6fb 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -92,5 +92,3 @@ jobs: run: npm run test - name: Build run: npm run build - - name: Check Build - run: npm run test:build