From cca6a64d43d361b32a1296f98414bb062836a6d8 Mon Sep 17 00:00:00 2001 From: dongmucat <1127093059@qq.com> Date: Wed, 6 May 2026 17:00:03 +0800 Subject: [PATCH] fix(cli): add explicit --registry flag to npm publish command Ensures npm publish uses the correct registry (registry.npmjs.org) even when global npm config points to a mirror registry (e.g., registry.npmmirror.com). --- scripts/publish-cli.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/publish-cli.sh b/scripts/publish-cli.sh index 8afc0166..972a4dda 100755 --- a/scripts/publish-cli.sh +++ b/scripts/publish-cli.sh @@ -142,7 +142,7 @@ EOF log_stage "publishing package" ( cd "$CLI_DIR" - NPM_CONFIG_USERCONFIG="$NPM_CONFIG_FILE" npm publish --access public + NPM_CONFIG_USERCONFIG="$NPM_CONFIG_FILE" npm publish --access public --registry "$NPM_REGISTRY" ) log_stage "publish completed"