Skip to content

Commit f6aedd3

Browse files
committed
test(plugins): restore npm registry for live clawhub
1 parent 43aaeee commit f6aedd3

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

scripts/e2e/lib/plugins/clawhub.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ run_plugins_clawhub_scenario() {
3737

3838
if [[ "${OPENCLAW_PLUGINS_E2E_LIVE_CLAWHUB:-0}" = "1" ]]; then
3939
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/}"
4041
elif [[ -z "${OPENCLAW_CLAWHUB_URL:-}" && -z "${CLAWHUB_URL:-}" ]]; then
4142
# Keep the release-path smoke hermetic; live ClawHub can rate-limit CI.
4243
clawhub_fixture_dir="$(mktemp -d "/tmp/openclaw-clawhub-fixture.XXXXXX")"

test/scripts/docker-build-helper.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,7 @@ describe("docker build helper", () => {
280280
expect(clawhub).toContain("start_clawhub_fixture_server()");
281281
expect(clawhub).toContain('OPENCLAW_CLAWHUB_URL="http://127.0.0.1:');
282282
expect(clawhub).toContain("OPENCLAW_PLUGINS_E2E_LIVE_CLAWHUB");
283+
expect(clawhub).toContain("OPENCLAW_PLUGINS_E2E_LIVE_NPM_REGISTRY");
283284
expect(clawhub).toContain("live ClawHub can rate-limit CI");
284285
expect(clawhub).toContain('[[ -z "${OPENCLAW_CLAWHUB_URL:-}" && -z "${CLAWHUB_URL:-}" ]]');
285286
});

0 commit comments

Comments
 (0)