Skip to content

ci(workflows): scaffold a monorepo with vp create after each release - #162

Merged
ChristopherPHolder merged 1 commit into
mainfrom
ci/e2e-monorepo
Dec 4, 2026
Merged

ChristopherPHolder merged 1 commit into
mainfrom
ci/e2e-monorepo

Conversation

@ChristopherPHolder

Copy link
Copy Markdown
Collaborator

create-ngp e2e now runs each template twice, as a single app and with --monorepo, so the matrix has four jobs.

  • Build: the build step runs vp run build, because a monorepo's top folder has no index.html and its build script names apps/web.
  • app-ssr server: it runs apps/web/dist/server/server.js. The monorepo's home page shows ui works!, the library's component, so the check looks for that instead of Clicks: 0.
  • Versions without --monorepo: 0.4.4 and earlier don't have the flag. On those, the monorepo runs skip with a notice, decided by grepping create-ngp --help, so the Monday run against latest stays green until the next release.

The monorepo steps can't run before a release has --monorepo. For now, app.test.mjs covers the same path through vp migrate: vp check, vp run build, vp test, and the server build's page. A dispatch on this branch against latest checks the single-app runs and the skip.

Also updates docs/releasing.md and the Status row.

Closes #142

🤖 Generated with Claude Code

@ChristopherPHolder

Copy link
Copy Markdown
Collaborator Author

I dispatched the workflow on this branch against latest (0.4.4): run 47265655379. All four jobs are green:

  • The two single-app jobs ran as before, with vp run build.
  • The two monorepo jobs skipped with the notice "@push-based/create-ngp@latest has no --monorepo; skipping the monorepo layout".

The monorepo steps themselves can't run until a release that has --monorepo is on npm.

create-ngp e2e runs each template twice, as a single app and with `--monorepo`, and builds through
`vp run build`, since a monorepo's top folder has no index.html. A version without `--monorepo`
skips those runs with a notice, so the weekly run against 0.4.4 stays green.

Closes #142

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ChristopherPHolder

Copy link
Copy Markdown
Collaborator Author

LGTM. I checked:

  • CI is green on c61eb8b.
  • The workflow dispatch on this branch passed all four jobs: the single-app runs passed, and the monorepo runs skipped on 0.4.4 with the notice.
  • The status.md conflict with main was resolved by keeping main's rows and adding "for both layouts". docs:check passes.
  • It merges cleanly onto the current main (d042d0e).

@ChristopherPHolder
ChristopherPHolder merged commit 13c5a14 into main Dec 4, 2026
2 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(workflows): run vp create with --monorepo in the after-release e2e

1 participant