fix: symlink nvm node/npm to /usr/bin for act runner
Deploy Slides / build-and-deploy (push) Failing after 1s
Deploy Slides / build-and-deploy (push) Failing after 1s
Node is installed via nvm at /root/.nvm which isn't in the runner's shell PATH. Symlink node, npm, npx to /usr/bin so they're available in all contexts including post-step cleanup. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -11,8 +11,9 @@ jobs:
|
||||
steps:
|
||||
- name: Setup PATH
|
||||
run: |
|
||||
NODE_BIN=$(which node)
|
||||
ln -sf "$NODE_BIN" /usr/bin/node
|
||||
ln -sf /root/.nvm/versions/node/*/bin/node /usr/bin/node
|
||||
ln -sf /root/.nvm/versions/node/*/bin/npm /usr/bin/npm
|
||||
ln -sf /root/.nvm/versions/node/*/bin/npx /usr/bin/npx
|
||||
|
||||
- name: Checkout
|
||||
uses: http://47.121.181.112:3000/wonder/checkout@v4
|
||||
|
||||
Reference in New Issue
Block a user