mirror of
https://git.fightbot.fun/hxuanyu/BingPaper.git
synced 2026-02-15 07:19:33 +08:00
前后端构建逻辑优化:新增Node.js支持,完善Dockerfile,更新构建与验证流程
This commit is contained in:
7
.github/workflows/release.yml
vendored
7
.github/workflows/release.yml
vendored
@@ -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
|
||||
|
||||
13
.github/workflows/verify.yml
vendored
13
.github/workflows/verify.yml
vendored
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user