-
Notifications
You must be signed in to change notification settings - Fork 1
46 lines (36 loc) · 940 Bytes
/
build.yaml
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
43
44
45
46
name: Build/release
on:
push:
branches:
- '*'
- 'feature/*'
tags:
- v*
pull_request:
branches:
- main
# env:
# DEBUG: '*'
jobs:
release:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
steps:
- name: Checkout Git repository
uses: actions/[email protected]
with:
submodules: recursive
- name: Setup Node.js
uses: actions/[email protected]
with:
node-version: 18
- name: Install npm dependencies
run: npm ci
- name: Build project
run: npm run build
- name: Run NodeJS Tests
run: npm run test
- name: Set release version
run: python3 -c "import os; tag = os.environ['GITHUB_REF'].split('/')[-1]; f = open(os.environ['GITHUB_ENV'], 'a'); f.write('RELEASE_VERSION='+tag); f.close();"