mirror of
https://github.com/239573049/FastGateway.git
synced 2026-10-16 21:10:58 +08:00
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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user