fix: symlink nvm node/npm to /usr/bin for act runner
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:
2026-05-27 13:31:21 +08:00
parent 1be07cc0c5
commit bbf4f59e9b
+3 -2
View File
@@ -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