fix(ci): GOPROXY 与 npm 镜像源修复两条流水线的依赖下载失败
server-deploy 在 Install dependencies 失败、web-deploy 在 Install pnpm 失败——亚洲 runner 直连 proxy.golang.org / registry.npmjs.org 不稳定。 Go 侧加 goproxy.cn 优先回落官方源;pnpm 安装与前端依赖安装走 registry.npmmirror.com。 Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
co-authored by
Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
parent
69b8907711
commit
7c7880bbd8
@@ -60,6 +60,8 @@ jobs:
|
||||
working-directory: server
|
||||
run: |
|
||||
export HOME="$RUNNER_WORKSPACE"
|
||||
# 国内 runner 优先 goproxy.cn,海外 runner 自动回落官方源
|
||||
export GOPROXY="https://goproxy.cn,https://proxy.golang.org,direct"
|
||||
"$LUNAR_GO" mod download
|
||||
|
||||
- name: Run tests
|
||||
|
||||
Reference in New Issue
Block a user