From dbc1c301df8698cebfaf0090312cdf8fed74771b Mon Sep 17 00:00:00 2001 From: yetone Date: Fri, 2 Oct 2026 16:58:50 +0800 Subject: [PATCH] =?UTF-8?q?publish:=20always=20to=20registry.npmjs.org,=20?= =?UTF-8?q?whatever=20~/.npmrc=20names=20=E2=80=94=20with=20npmmirror=20as?= =?UTF-8?q?=20the=20registry=20(common=20in=20China)=20the=20publish=20wen?= =?UTF-8?q?t=20there=20and=20was=20refused=20(ENEEDAUTH),=20and=20npm=20vi?= =?UTF-8?q?ew=20checked=20the=20mirror=20for=20what=20is=20published?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/publish.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/publish.sh b/scripts/publish.sh index 1b023c3..e20b87c 100755 --- a/scripts/publish.sh +++ b/scripts/publish.sh @@ -4,6 +4,9 @@ # One password covers the lot: it is sent with each publish while it lasts. set -e cd "$(dirname "$0")/.." +# npm's own registry, whatever ~/.npmrc names (a mirror such as npmmirror +# takes no publish) +export npm_config_registry=https://registry.npmjs.org bun scripts/check.mjs otp="$1" for dir in packages/*/; do