Skip to content

Build the Next.js example in CI - #9

Merged
javaquasar merged 1 commit into
mainfrom
claude/ci-examples
Dec 2, 2026
Merged

javaquasar merged 1 commit into
mainfrom
claude/ci-examples

Conversation

@javaquasar

Copy link
Copy Markdown
Owner

Summary

CI never compiled examples/next-app. The example broke unnoticed once already: it imported updateTag, which does not exist in Next.js 15. Since then, every change to it has been checked by hand.

This PR adds a separate job, Build the Next.js example, on Node 22. It:

  1. runs npm ci at the root and builds the packages, which the example links through file: dependencies;
  2. runs npm ci in examples/next-app;
  3. runs npm run typecheck in examples/next-app;
  4. runs npm run build (next build) in examples/next-app.

Choices:

  • One Node version. next build is slow, and the main job already covers Node 20, 22 and 24.
  • Telemetry. Next.js telemetry is turned off.
  • Cache. The npm cache key covers both lockfiles.

examples/published-next-app is not included. It installs the packages from npm (^0.1.1), so it would test the old release. It should be updated and added together with the 0.2.0 release.

Test plan

  • Ran the same steps locally from a clean state, with no node_modules, .next or dist. npm ci with the existing lockfile, npm run typecheck and next build all succeed.
  • The workflow YAML parses and the job has the expected steps.
  • The new job passes on this PR.

🤖 Generated with Claude Code

A separate job on Node 22 builds the packages, runs npm ci in
examples/next-app, then typechecks and builds it with next build. The
example links the packages through file: dependencies, so they are
built first. It broke unnoticed before (updateTag on Next.js 15) because
CI never compiled it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@javaquasar
javaquasar merged commit 6165828 into main Dec 2, 2026
4 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.

1 participant