pnpm Fixes GitHub Actions Global Bin Dir Error with Environment File Writes
A bug in pnpm caused the ERR_PNPM_NO_GLOBAL_BIN_DIR error in GitHub Actions workflows when users ran pnpm setup followed by a global pnpm command in a later step. The root cause was that pnpm setup wrote configuration only to shell profile files, while GitHub Actions steps run as separate execution boundaries and require state to be passed via dedicated environment and path files. Because PNPM_HOME was never written to GITHUB_ENV or GITHUB_PATH, later workflow steps could not locate the global bin directory. A targeted fix in pull request #12841 adds logic to detect the presence of these GitHub Actions files and write the necessary values to them when running in a CI runner environment. The patch affects both the TypeScript and Rust CLI code paths without altering shell-profile setup behavior for non-CI environments.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in