Skip to content

fix(ci): build workspaces before publish so react finds embed's types#40

Merged
bendersej merged 1 commit into
mainfrom
fix-release-build
Jun 29, 2026
Merged

fix(ci): build workspaces before publish so react finds embed's types#40
bendersej merged 1 commit into
mainfrom
fix-release-build

Conversation

@bendersej

Copy link
Copy Markdown
Member

Background

Merging the Version PR (#28) triggered the publish, but it failed before shipping anything (npm still at @simplepdf/embed@0.4.0 / @simplepdf/react-embed-pdf@1.10.0).

release.yaml has no build step — it relies on changeset publish's prepublishOnly hooks. But those don't build in dependency order: react's prepublishOnly (rollup -c) runs before @simplepdf/embed's type declarations exist, so rpt2 can't resolve @simplepdf/embed / /tools / /ai-sdk (TS7016) and the whole publish aborts. dist is gitignored, so CI must build it — and the ordering can't be left to the publish hooks.

Changes

  • release.yaml builds all workspaces in dependency order (embed → react → web) before the publish step, so each package's types exist before the next builds.

Notes

Verified locally from a clean dist: npm run build --workspaces --if-present builds embed (8 .d.ts) then react with no TS7016, exit 0. Merging this re-runs release.yaml on main (the changesets are already consumed, so it takes the publish path) → builds → publishes 0.5.0 / 1.11.0.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jun 29, 2026

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
simplepdf-webhooks d250f8b Commit Preview URL

Branch Preview URL
Jun 29 2026, 09:13 AM

@bendersej bendersej merged commit b664d7b into main Jun 29, 2026
1 check passed
@bendersej bendersej deleted the fix-release-build branch June 29, 2026 09:15
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.

1 participant