-
Notifications
You must be signed in to change notification settings - Fork 50
32 lines (32 loc) · 924 Bytes
/
build.yaml
File metadata and controls
32 lines (32 loc) · 924 Bytes
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
name: Build
on:
pull_request:
push:
branches: [main]
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v1
with:
node-version: 23.x
- name: Install Dependencies
run: npm ci --no-audit
- name: License Check
run: npx license-checker --production --summary --onlyAllow "MIT;Apache-2.0;BSD-3-Clause;0BSD"
- name: Audit Dependencies
run: npm audit --production
- name: Build
run: VITE_FULL_VERSION_INFO="$GITHUB_REPOSITORY $GITHUB_SHA built on $(date) $(hostname)" npm run build
- name: Prettier Check
run: npm run prettier:check
- name: Test
run: npm run test
- name: Push Build
run: ./push_build.sh
env:
GITHUB_TOKEN: ${{secrets.PUSH_TOKEN}}