From 8a67e072d9de6b482e8176d8fe74a6eaf7bf117b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=B2=81=E6=A0=91=E4=BA=BA?= Date: Sat, 10 Jun 2023 18:05:50 +0100 Subject: [PATCH] ci: use deb mirror from netease --- .drone.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.drone.yml b/.drone.yml index c32b04d..064e285 100644 --- a/.drone.yml +++ b/.drone.yml @@ -12,6 +12,7 @@ steps: - pnpm i --frozen-lockfile - pnpm build environment: + # 让 npm 使用淘宝源 npm_config_registry: https://registry.npmmirror.com - name: publish @@ -26,6 +27,8 @@ steps: from_secret: NETLIFY_API_KEY commands: # - git config --global --add safe.directory "/drone/src" + # 让 Debian 使用网易源。阿里的源有限速。 + - sed -i 's/deb.debian.org/mirrors.163.com/g' /etc/apt/sources.list - apt-get update && apt-get install -y zip jq tar gzip curl - (cd dist && zip -r -9 ../um-react.zip .) - ./scripts/publish.sh