ci: expose built percy on PATH in CLI-branch injection (PER-9772)#38
Open
pranavz28 wants to merge 3 commits into
Open
ci: expose built percy on PATH in CLI-branch injection (PER-9772)#38pranavz28 wants to merge 3 commits into
pranavz28 wants to merge 3 commits into
Conversation
npx percy could not resolve the yarn-linked @percy/cli (yarn link symlinks the package but not its bin), so it downloaded the unrelated public percy@5.0.0 and the inject step failed. Add the yarn global bin to PATH and verify with `percy --version`; link is now best-effort so non-JS repos don't abort. Part of PER-9772. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…ction) git clone interpolated github.event.inputs.branch directly into the shell. Pass it via env ($BRANCH); it is regex-validated upstream. Part of PER-9772. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
aryanku-dev
approved these changes
Jun 29, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes CLI-branch SDK regression for this repo:
npx percycouldn't resolve the yarn-linked@percy/cli(link symlinks the package, not its bin) → it downloadedpercy@5.0.0and the inject step failed. Now we add the built CLI's bin to PATH and verify withpercy --version; the yarn link is best-effort so non-JS repos don't abort on a missing lockfile. Part of PER-9772. 🤖 Generated with Claude Code