From f25491466067c0e249179eef061e024da0a9fc5b Mon Sep 17 00:00:00 2001 From: cipchk Date: Thu, 19 Oct 2023 16:18:06 +0800 Subject: [PATCH] chore: fix sync npm mirror --- scripts/publish/publish.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/publish/publish.sh b/scripts/publish/publish.sh index e06d34f560..506d97a46e 100755 --- a/scripts/publish/publish.sh +++ b/scripts/publish/publish.sh @@ -41,9 +41,9 @@ publishToNext() { npm publish --tag next } -syncTaobao() { - (cd ${ROOT}/@delon; for p in `ls .`; do curl -X PUT https://npmmirror.com/sync/@delon/$p?sync_upstream=true; done) - curl -X PUT https://npmmirror.com/sync/ng-alain?sync_upstream=true +syncNpmMirror() { + (cd ${ROOT}/@delon; for p in `ls .`; do curl -X PUT https://registry-direct.npmmirror.com/-/package/@delon/$p/syncs; done) + curl -X PUT https://registry-direct.npmmirror.com/-/package/ng-alain/syncs } clone @@ -52,4 +52,4 @@ if [[ ${NEXT} == true ]]; then else publishToMaster fi -syncTaobao +syncNpmMirror