fix(ci): release 工作流使用 Node 20 修复 web 构建失败

Tailwind CSS v4 使用原生 @tailwindcss/oxide 绑定并要求 Node 20+,
Node 18(npm 9)会触发 npm 可选依赖 bug(npm/cli#4828),导致
"Cannot find native binding"。与 docker-image.yml 保持一致改用 Node 20。

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
token
2026-07-03 12:41:01 +08:00
parent 4b54993c12
commit 0b84add399
+3 -1
View File
@@ -16,7 +16,9 @@ permissions:
env:
DOTNET_VERSION: '10.0.x'
NODE_VERSION: '18.x'
# Tailwind CSS v4 ships a native (oxide) binding and requires Node 20+.
# Node 18 (npm 9) triggers the npm optional-dependency bug (npm/cli#4828).
NODE_VERSION: '20.x'
jobs:
build-web: