test(plugins): restore npm registry for live clawhub · openclaw/openclaw@f6aedd3
vincentkoc
·
2026-05-03
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -37,6 +37,7 @@ run_plugins_clawhub_scenario() {
|
37 | 37 | |
38 | 38 | if [[ "${OPENCLAW_PLUGINS_E2E_LIVE_CLAWHUB:-0}" = "1" ]]; then |
39 | 39 | export OPENCLAW_CLAWHUB_URL="${OPENCLAW_CLAWHUB_URL:-${CLAWHUB_URL:-https://clawhub.ai}}" |
| 40 | +export NPM_CONFIG_REGISTRY="${OPENCLAW_PLUGINS_E2E_LIVE_NPM_REGISTRY:-https://registry.npmjs.org/}" |
40 | 41 | elif [[ -z "${OPENCLAW_CLAWHUB_URL:-}" && -z "${CLAWHUB_URL:-}" ]]; then |
41 | 42 | # Keep the release-path smoke hermetic; live ClawHub can rate-limit CI. |
42 | 43 | clawhub_fixture_dir="$(mktemp -d "/tmp/openclaw-clawhub-fixture.XXXXXX")" |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -280,6 +280,7 @@ describe("docker build helper", () => {
|
280 | 280 | expect(clawhub).toContain("start_clawhub_fixture_server()"); |
281 | 281 | expect(clawhub).toContain('OPENCLAW_CLAWHUB_URL="http://127.0.0.1:'); |
282 | 282 | expect(clawhub).toContain("OPENCLAW_PLUGINS_E2E_LIVE_CLAWHUB"); |
| 283 | +expect(clawhub).toContain("OPENCLAW_PLUGINS_E2E_LIVE_NPM_REGISTRY"); |
283 | 284 | expect(clawhub).toContain("live ClawHub can rate-limit CI"); |
284 | 285 | expect(clawhub).toContain('[[ -z "${OPENCLAW_CLAWHUB_URL:-}" && -z "${CLAWHUB_URL:-}" ]]'); |
285 | 286 | }); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。