ci: put npm's global bin on PATH for the dx CLI - #27
Merged
Conversation
The registry publish never ran: `npm install -g` reported success and the very next line failed with `dx: command not found`. node comes from proto, so npm's global bin is not a directory the shell already searches. npm reports the prefix it installs into, so the step asks for it rather than choosing one. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SZ4ZdaPo9erkh5yF4eXh3Z
wittjosiah
force-pushed
the
claude/plugin-excalidraw-pr8-cleanup-hb0ebu
branch
from
August 8, 2026 17:09
f975570 to
d04d46a
Compare
wittjosiah
marked this pull request as ready for review
August 8, 2026 17:19
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.
npm published.
@dxos/plugin-tictactoe@0.10.1is live —dist-tags.latestmoved from the0.0.0placeholder to0.10.1— and tagged. Therepository.urlfix worked; that half of the pipeline is proven end to end.The registry publish still didn't run (run 31267297719):
The install succeeded and the binary was still unresolvable, because node comes from proto and npm's global bin is not a directory the shell already searches.
Change
The same npm answers
prefix -gand performs the install, so the location is correct by construction — no second guess about where the binary went, and nothing invented for it to live in.Verification
Uninstalled the CLI, confirmed
dxwas genuinely unresolvable, then ran the step's lines extracted from the workflow YAML so the test can't drift from what ships, with proto's node first onPATHas on the runner:(An earlier attempt of mine reported success against a stale CLI still on
PATHfrom a previous test; the run above is after removing it.)Next
npm is append-only, so a plain re-run finds 0.10.1 already published, reports nothing released, and skips the registry step — the trap
registry_onlywas added for in #26. Once this lands I'll dispatch Release withregistry_only: trueto drive the registry half, with no version burn per attempt.