Commit 5babe9e
committed
fix(ci): sync-uuid workflow SSH 非交互 shell 初始化 nvm
workflow 在服务器上跑,用 appleboy/ssh-action 起的 SSH 非交互 shell
不会自动 source ~/.bashrc,nvm 管理的 node/pnpm 不在 PATH 里,整条
chain 直接卡 "pnpm: command not found" (exit 127)。
修法:script 开头手动 source $NVM_DIR/nvm.sh,带 -s 兜底 nvm 未装时
不炸。这样 pnpm / tsx / prisma generate 都能跑起来。
后端 workflow 将来可能踩同坑,到时一起修。1 parent d6d0a3d commit 5babe9e
1 file changed
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
60 | 67 | | |
61 | 68 | | |
62 | 69 | | |
| |||
0 commit comments