Dev Tools · 1h ago
pnpm Setup Fails in GitHub Actions Due to Step Boundary Bug
A bug in pnpm's setup command causes global commands to fail in GitHub Actions because environment variables are written to shell profiles instead of GitHub's step-persistence files. The issue, reported as ERR_PNPM_NO_GLOBAL_BIN_DIR, stems from a mismatch between local shell setup and CI step boundaries. A fix has been proposed in pull request #12841.
Meridian48 take
The fix is small but highlights a common CI pitfall: tools must explicitly write to GitHub Actions environment files, not just shell profiles, to persist state across steps.
Read the full reporting
Scarab Diagnostic Field Test #038 - pnpm GitHub Actions Setup State Boundary →
DEV Community
pnpmgithub-actions