Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
xygodcyx committed May 21, 2024
1 parent c52fde8 commit 2703075
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,25 @@ jobs:
- name: Checkout code
uses: actions/checkout@v2

# 安装 Node.js 和 npm
- name: Install Node.js and npm
uses: actions/setup-node@v2.1.5
with:
node-version: '14'

# 安装 vte 和其他前端依赖
- name: Install frontend dependencies
working-directory: ./client
run: |
npm install vite -g
npm install
env:
NODE_ENV: production

# 前端构建步骤
- name: Build Vue App
working-directory: ./client
run: |
npm install
npm run build
env:
NODE_ENV: production
Expand All @@ -38,8 +52,7 @@ jobs:
working-directory: ./server
run: |
npm install
npm run build
npm start &
npm run start &
env:
NODE_ENV: production

Expand Down

0 comments on commit 2703075

Please sign in to comment.