Plan: Fix failing deploy workflow — remove broken Volta dependency#
Summary#
The deploy workflow fails because volta is not in $PATH on the self-hosted runner (~/.volta/bin is missing from PATH), so volta install node@20 errors with No such file or directory. Node v22 is available directly via ~/.volta/tools/image/node/22.22.0/bin/node (which is in PATH). The fix: remove the Volta step from deploy.yml to align with agent-core's working deploy pattern, and add a node --version smoke check as a recurrence guard.
Files#
| File | Action | Description |
|---|---|---|
.github/workflows/deploy.yml | modify | Remove "Ensure Node via Volta" step; add node --version guard step |
Steps#
- Remove the "Ensure Node via Volta" step from
.github/workflows/deploy.yml— delete thevolta install node@20step entirely. - Add a "Verify Node available" guard step before "Install dependencies" — run
node --versionso the workflow fails fast with a clear error if Node ever disappears from the runner. - Validate workflow YAML — confirm the file is syntactically valid and step ordering is correct.
Verification#
npm run lintpasses with zero warnings.npm run buildcompletes successfully.deploy.ymlcontains no Volta references; includesnode --versionguard step beforenpm install.
Risks#
- If the runner's Node path (
~/.volta/tools/image/node/22.22.0/bin) is removed or changes, the deploy will fail at the newnode --versionguard step with a clear error message rather than a cryptic Volta error.