Skip to content

Commit

Permalink
chore: fix sync npm mirror
Browse files Browse the repository at this point in the history
  • Loading branch information
cipchk committed Oct 19, 2023
1 parent c687ea8 commit f254914
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scripts/publish/publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -52,4 +52,4 @@ if [[ ${NEXT} == true ]]; then
else
publishToMaster
fi
syncTaobao
syncNpmMirror

0 comments on commit f254914

Please sign in to comment.