forked from icelam/random-name-picker
-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (42 loc) · 962 Bytes
/
build.yml
File metadata and controls
44 lines (42 loc) · 962 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
33
34
35
36
37
38
39
40
41
42
43
44
name: Build
on:
push:
branches:
- "master"
tags-ignore:
- "**" # prevent double build on release tag
pull_request:
types:
- opened
- reopened
- synchronize
- ready_for_review
branches:
- "**"
# Global variables that will be load into every shell
env:
TEST_REPORT_ESLINT_FOLDER: reports/eslint
TEST_REPORT_ESLINT_FILENAME: eslint.json
jobs:
build:
name: Build
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout repo
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup
uses: ./.github/actions/setup
- name: Build
run: |
yarn build
- name: Archive build artifacts
uses: actions/upload-artifact@v4
with:
name: dist-${{ runner.os }} # artifacts zip name
path: |
dist