publish: always to registry.npmjs.org, whatever ~/.npmrc names — with npmmirror as the registry (common in China) the publish went there and was refused (ENEEDAUTH), and npm view checked the mirror for what is published

This commit is contained in:
yetone
2026-10-02 16:58:50 +08:00
parent 427947eadc
commit dbc1c301df
+3
View File
@@ -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