前后端构建逻辑优化:新增Node.js支持,完善Dockerfile,更新构建与验证流程

This commit is contained in:
2026-01-27 15:44:02 +08:00
parent d757dbd39d
commit 89bdfbd48e
8 changed files with 121 additions and 15 deletions

View File

@@ -20,6 +20,13 @@ jobs:
with:
go-version: '1.25.5'
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
cache-dependency-path: webapp/package-lock.json
- name: Build and Package
run: |
chmod +x scripts/build.sh

View File

@@ -17,6 +17,19 @@ jobs:
with:
go-version: '1.25.5'
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
cache-dependency-path: webapp/package-lock.json
- name: Build Frontend
run: |
cd webapp
npm install
npm run build
- name: Install dependencies
run: go mod download