-
Notifications
You must be signed in to change notification settings - Fork 2
46 lines (40 loc) · 1.17 KB
/
nextron.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
43
44
45
46
name: Nextron CI
on:
pull_request_target:
jobs:
authorize:
environment: ${{ github.event_name == 'pull_request_target' && github.event.pull_request.head.repo.full_name != github.repository && 'external' || 'internal' }}
runs-on: ubuntu-latest
steps:
- run: true
build:
name: Build
strategy:
matrix:
include:
- platform: mac
os: "macos-12"
- platform: linux
os: "ubuntu-22.04"
- platform: windows
os: "windows-2022"
runs-on: ${{ matrix.os }}
needs: authorize
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha || github.ref }}
- name: Settp Node.js
uses: actions/setup-node@v4
with:
node-version: 20
- name: Run install
uses: borales/actions-yarn@v5
with:
cmd: install --network-timeout 1000000 # will run `yarn install` command
dir: desktop-app
- name: Build production bundle
uses: borales/actions-yarn@v5
with:
cmd: build # will run `yarn build` command (for each os)
dir: desktop-app