2023-08-26 23:06:22 +08:00
|
|
|
name: NodeJS with Webpack
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: ["next"]
|
|
|
|
pull_request:
|
|
|
|
branches: ["next"]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
node-version: [16.x]
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
|
|
|
|
- name: Use Node.js ${{ matrix.node-version }}
|
|
|
|
uses: actions/setup-node@v3
|
|
|
|
with:
|
|
|
|
node-version: ${{ matrix.node-version }}
|
|
|
|
|
2023-08-26 23:12:43 +08:00
|
|
|
- name: Build Frontend
|
|
|
|
run: cd frontend && npm install && npm run build
|
2023-08-26 23:18:40 +08:00
|
|
|
|
|
|
|
- name: Build Daemon
|
|
|
|
run: cd daemon && npm install && npm run build
|
|
|
|
|
|
|
|
- name: Build Panel
|
|
|
|
run: cd panel && npm install && npm run build
|