Skip to content

ci: typecheck and build the demo - #51

Merged
ivoIturrieta merged 1 commit into
unlayer:mainfrom
sidgaikwad:ci/build-demo
Sep 7, 2026
Merged

ci: typecheck and build the demo#51
ivoIturrieta merged 1 commit into
unlayer:mainfrom
sidgaikwad:ci/build-demo

Conversation

@sidgaikwad

Copy link
Copy Markdown
Contributor

Fixes #34.

Problem

CI never touched demo/. Both jobs ran only at the repo root, so nothing installed, typechecked or built the demo — even though it:

  • is aliased straight to ../src (demo/vite.config.ts), making it the project's only integration harness for the component's public surface
  • is the live demo linked from the README, so a break there is user-facing

It was already drifting: demo/package.json pins @unlayer/types@1.448.0 while the root pins 1.477.0, and nothing noticed.

Change

  1. A demo job that installs both workspaces and runs typecheck + build. The root npm ci is needed first because the alias resolves into the parent.
  2. A typecheck script in demo/package.json — it had none, so there was nothing for CI to call.
  3. A /demo entry in .github/dependabot.yml, grouped, so the demo's dependencies stop drifting behind the root.

Verification

Ran the exact job steps locally against this tree:

demo typecheck OK
demo build OK

Two notes for the reviewer

  • I left the @unlayer/types bump out of this PR to keep it CI-scoped. I did verify separately that 1.477.0 typechecks and builds clean in the demo, so the Dependabot PR this change enables should be safe to merge.
  • This touches .github/workflows/ci.yml, so it will conflict with ci: add permissions, a concurrency group, and pin actions to SHAs #50 (SHA-pinning). The hunks are far apart and should merge cleanly, but whichever lands second will want the new demo job's uses: lines pinned to match. Happy to rebase whichever order you prefer.

The demo is aliased straight to ../src and is the project's only
integration harness, but nothing in CI touched it — a change to the
component's public surface could break it and still show a green build.
The demo is also the live demo linked from the README, so a break there is
user-facing.

Add a `demo` job that installs both workspaces and runs typecheck + build,
a `typecheck` script in demo/package.json to back it, and a Dependabot
entry for /demo so its dependencies stop drifting behind the root.
@vercel

vercel Bot commented Sep 4, 2026

Copy link
Copy Markdown

@sidgaikwad is attempting to deploy a commit to the Unlayer Team on Vercel.

A member of the Team first needs to authorize it.

@ivoIturrieta
ivoIturrieta merged commit 75fc8d5 into unlayer:main Sep 7, 2026
8 of 9 checks passed
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.

CI does not build or typecheck the demo — breakage ships silently

2 participants