Skip to content

chore(ci): install pnpm in demos smoke-test job#3274

Merged
caio-pizzol merged 1 commit into
mainfrom
caio-pizzol/ci-pnpm-smoke-test
May 13, 2026
Merged

chore(ci): install pnpm in demos smoke-test job#3274
caio-pizzol merged 1 commit into
mainfrom
caio-pizzol/ci-pnpm-smoke-test

Conversation

@caio-pizzol
Copy link
Copy Markdown
Contributor

The contract-templates demo has a predev script (pnpm --filter superdoc build) which the smoke-test runner invokes via npm run dev. Without pnpm on PATH the predev hook fails with sh: 1: pnpm: not found and the demo never starts; playwright then reports Process from config.webServer was not able to start. Exit code: 127.

This blocks every PR that triggers the demos workflow (i.e. anything touching demos/** or shared packages like super-editor, layout-engine, superdoc, react). Example: #3272.

The build job already uses pnpm/action-setup@v4. Mirroring it in smoke-test keeps the local dev UX intact (the predev hook still does its job) and unblocks the matrix. Two-line change.

Verified locally by reading the failing job logs at https://github.com/superdoc-dev/superdoc/actions/runs/25828093178/job/75886653390 and confirming the predev script in demos/contract-templates/package.json:6 is the unique demo carrying this hook.

The contract-templates demo has a predev script (`pnpm --filter superdoc build`)
which the smoke-test runner invokes via `npm run dev`. Without pnpm on PATH the
predev hook fails with `sh: 1: pnpm: not found` and the demo never starts, so
playwright reports `Process from config.webServer was not able to start`.

The build job already uses pnpm/action-setup; mirroring it in smoke-test keeps
local dev UX intact (predev still works) and unblocks every PR that exercises
the demos matrix.
@caio-pizzol caio-pizzol requested a review from a team as a code owner May 13, 2026 22:10
@caio-pizzol caio-pizzol merged commit a6a6654 into main May 13, 2026
6 checks passed
@caio-pizzol caio-pizzol deleted the caio-pizzol/ci-pnpm-smoke-test branch May 13, 2026 22:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant