-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (34 loc) · 867 Bytes
/
server.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Server
on:
push:
branches:
- main
pull_request:
concurrency:
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'
cancel-in-progress: true
jobs:
build:
name: Build
runs-on: ubuntu-latest
env:
workdir: ./server
steps:
- name: Checkout Source
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 20
- name: Install Dependencies
working-directory: ${{ env.workdir }}
run: npm install
- name: Lint Check
working-directory: ${{ env.workdir }}
run: npm run lint
- name: Build Check
working-directory: ${{ env.workdir }}
env:
NODE_ENV: production
PORT: 3000
run: npm run build