You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Support installing pnpm in another folder rather than fixed in GITHUB_WORKSPACE #17
For a mono repo, it is possible that the package.json is in ./docs, but currently, pnpm/setup@v1 could only install pnpm in GITHUB_WORKSPACE, which brings errors.
Could it be possible to install pnpm in the directory where package-json-file is nested?
Reacted by Parsa Javan, Andrew Haines, Andreas Deininger, Mattias and Riccardo Bergamaschi
But yes, the package raises an error on pnpm install by its own and doesn't respect the package-json-file path. This is why i have a seperate step pnpm install which runs on a directory that i want.
But yes, the package raises an error on pnpm install by its own and doesn't respect the package-json-file path. This is why i have a seperate step pnpm install which runs on a directory that i want.
Let me know if this workaround solves your issue.
Yes, that works.
But I was worried if the pnpm store cache could work as intended, since the cache step is in pnpm/setup, but the package installation step is not.
Activity
ParsaJR commentedon Aug 5, 2026
If the file
package.jsonresides in./docsdirectory, then the action template below should install the project just fine.But yes, the package raises an error on
pnpm installby its own and doesn't respect thepackage-json-filepath. This is why i have a seperate steppnpm installwhich runs on a directory that i want.Let me know if this workaround solves your issue.
lucienshawls commentedon Aug 10, 2026
Yes, that works.
But I was worried if the pnpm store cache could work as intended, since the cache step is in
pnpm/setup, but the package installation step is not.