From 0127321c06dfdec699c4adb218f479a47bb882b1 Mon Sep 17 00:00:00 2001 From: Jesse_Chen Date: Wed, 5 Aug 2026 16:41:23 +0800 Subject: [PATCH] Use reachable npm registry in Gitea CI --- .gitea/workflows/backend-quality-gate.yml | 1 + frontend/tests/staging-backend-workflows.test.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/.gitea/workflows/backend-quality-gate.yml b/.gitea/workflows/backend-quality-gate.yml index c754618c..68d907cd 100644 --- a/.gitea/workflows/backend-quality-gate.yml +++ b/.gitea/workflows/backend-quality-gate.yml @@ -164,6 +164,7 @@ jobs: env: PIP_INDEX_URL: https://mirrors.aliyun.com/pypi/simple/ PLAYWRIGHT_DOWNLOAD_HOST: https://registry.npmmirror.com/-/binary/playwright + NPM_CONFIG_REGISTRY: https://registry.npmmirror.com run: | set -euo pipefail python3 -m venv .venv diff --git a/frontend/tests/staging-backend-workflows.test.ts b/frontend/tests/staging-backend-workflows.test.ts index 8f602881..4bf32c3a 100644 --- a/frontend/tests/staging-backend-workflows.test.ts +++ b/frontend/tests/staging-backend-workflows.test.ts @@ -132,6 +132,7 @@ test("Gitea quality gate validates before publishing an immutable ACR manifest", assert.match(workflow, /python3 -m venv \.venv/); assert.match(workflow, /PIP_INDEX_URL: https:\/\/mirrors\.aliyun\.com\/pypi\/simple\//); assert.match(workflow, /PLAYWRIGHT_DOWNLOAD_HOST: https:\/\/registry\.npmmirror\.com\/-\/binary\/playwright/); + assert.match(workflow, /NPM_CONFIG_REGISTRY: https:\/\/registry\.npmmirror\.com/); for (const constraint of [ 'mcp==1.28.1', 'pydantic==2.13.4',