Skip to content

fix: pnpm global bin PATH + pipefail-safe version detection - #11

Merged
mayurrawte merged 1 commit into
masterfrom
fix/pipefail-pnpm-path
May 21, 2026
Merged

mayurrawte merged 1 commit into
masterfrom
fix/pipefail-pnpm-path

Conversation

@mayurrawte

Copy link
Copy Markdown
Owner

Two final test failures:

1. pnpm global bin not on PATH
pnpm add -g installs to $(pnpm bin -g) (e.g. ~/.local/share/pnpm) but that directory wasn't added to PATH.
Fix: append $(pnpm bin -g) to $GITHUB_PATH after install — same pattern as yarn.

2. version detection exits code 1 under pipefail
The shell runs with -e -o pipefail. grep exits code 1 when it finds no match, which killed the whole step via pipefail.
Fix: append || true to the pipeline so it always exits 0; the ${:-unknown} fallback then handles empty output.

@mayurrawte
mayurrawte merged commit fcd1daf into master May 21, 2026
1 of 13 checks passed
@mayurrawte
mayurrawte deleted the fix/pipefail-pnpm-path branch May 21, 2026 07:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant