CI fails on `make install` with 'pnpm: Maximum call stack size exceeded'

CI of a Volto add-on fails in step make install with 'pnpm: Maximum call stack size exceeded'
A local run of make install on a freshly checked out branch of the same succeeds.

Any hint is welcome. Thank you!

That sounds like it ran out of memory. Is there a setting for increasing that?

The closest issue I found, one with that error message and on a remotely hosted environment, whereas it's fine locally, was this one. The cause was unbound recursion.

Can you output what GitHub actually installs in its entire stack and its versions to compare against your local environment? That might identify a clue.

@ksuess

Your pnpm-workspaces.yml is the problem, it gets infinite recursion.
When you are using multiple packages inside your packages you should change it to have this kind of shape if you are using cookieplone-based add-on packages: