ci: install github deploy source with npm

This commit is contained in:
Haitao Pan 2026-06-06 06:36:07 +08:00
parent 80452beb49
commit 41cae90127

View File

@ -163,7 +163,9 @@ jobs:
trap rollback ERR
install_plugin() {
if command -v openclaw >/dev/null 2>&1; then
if [ "${INSTALL_SOURCE}" = "github" ]; then
npm install -g "${INSTALL_SPEC}"
elif command -v openclaw >/dev/null 2>&1; then
openclaw plugins install "${INSTALL_SPEC}" \
|| openclaw plugins update "${INSTALL_SPEC}" \
|| npm install -g "${INSTALL_SPEC}"