Repository navigation
Build the Next.js example in CI - #9
Merged
Merged
Conversation
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>
3 of 4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
CI never compiled
examples/next-app. The example broke unnoticed once already: it importedupdateTag, 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:
npm ciat the root and builds the packages, which the example links throughfile:dependencies;npm ciinexamples/next-app;npm run typecheckinexamples/next-app;npm run build(next build) inexamples/next-app.Choices:
next buildis slow, and the main job already covers Node 20, 22 and 24.examples/published-next-appis 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
node_modules,.nextordist.npm ciwith the existing lockfile,npm run typecheckandnext buildall succeed.🤖 Generated with Claude Code