From d250f8bae02c9997d9e20de0a48da737210aa2d6 Mon Sep 17 00:00:00 2001 From: ben Date: Mon, 29 Jun 2026 11:13:24 +0200 Subject: [PATCH] fix(ci): build workspaces in dependency order before publish (react's rollup needs embed's types) --- .github/workflows/release.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 28c5d0fd..cfaac889 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -29,6 +29,13 @@ jobs: - name: Install dependencies run: npm ci + # Build in dependency order (workspaces: embed → react → web) so each package's + # types exist before the next builds. Without this, changeset publish's + # prepublishOnly hooks race: react's rollup type-checks against @simplepdf/embed's + # .d.ts, which isn't generated yet → TS7016 → the publish aborts before anything ships. + - name: Build packages + run: npm run build --workspaces --if-present + - name: Create Release Pull Request or Publish id: changesets uses: changesets/action@v1