Files
BYW-VoiceHub/.gitea/workflows
Henry_Du 0373c19b54
构建并部署 BYW VoiceHub / Preflight 语法与构建检查 (push) Failing after 8s
构建并部署 BYW VoiceHub / 构建并推送容器镜像 (push) Skipped
构建并部署 BYW VoiceHub / 部署到生产服务器 (push) Failing after 3s
fix(ci): remove actions/setup-node; use npmmirror/gh-proxy for all remote fetches
Issue: actions/setup-node@v4 directly connects to https://github.com/actions/node-versions/releases/download/... to download Node tarballs (log line Acquiring node-v*-linux-x64.tar.gz), which is throttled or connection-reset from inside China, causing preflight to hang until 15m timeout.

Fix: align preflight with build-image job policy (NO third-party 'uses:' directives, ALL remote resources use CN mirrors or GH_PROXY_PREFIX):

- Remove uses: actions/setup-node@v4 completely; replace with plain run steps

- 3-tier Node 22 readiness with zero direct github.com connections:

  1) Fast path: reuse Runner's system node if major version >= 22, skip download entirely

  2) Primary: fetch Node 22 tarball from npmmirror CN binary mirror (https://registry.npmmirror.com/-/binary/node/...) and auto-resolve latest 22.x patch via npmmirror index.json using python3 single-quote script + printf stdin (NO heredoc, which previously caused YAML block-scalar indentation parse errors)

  3) Fallback: GH_PROXY_PREFIX + official nodejs.org dist URL for the same tarball (proxied, never plain github.com)

- NODE_VERSION_FALLBACK=22.13.0 fixed guard when index resolution fails

- Post-install: prepend new node bin PATH to GITHUB_ENV so subsequent steps (clone / npm ci / nuxt build) inherit Node 22 automatically

- Audit: grep deploy.yml now yields zero 'uses:' directives
2026-09-11 22:46:40 +08:00
..