-
Notifications
You must be signed in to change notification settings - Fork 4
54 lines (52 loc) · 1.12 KB
/
main.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
47
48
49
50
51
52
53
54
name: "main"
on:
push:
branches:
- "master"
paths:
- .github/workflows/main.yaml
- .github/RELEASE_DRAFT/*
- jest.config.js
- package.json
- src/*
- tests/*
- tsconfig.json
- yarn.lock
pull_request:
paths:
- .github/workflows/main.yaml
- .github/RELEASE_DRAFT/*
- jest.config.js
- package.json
- src/*
- tests/*
- tsconfig.json
- yarn.lock
jobs:
build:
name: build
runs-on: ubuntu-latest
steps:
- name: Checkout git repository
uses: actions/checkout@v4
- name: Install, lint, and build
run: |
yarn install
yarn lint
yarn build
- name: Test
run: yarn test
release:
if: github.ref == 'refs/heads/master'
name: release
runs-on: ubuntu-latest
needs:
- build
steps:
- name: Checkout git repository
uses: actions/checkout@v4
- name: Create Release
uses: minddocdev/mou-release-action@master
with:
templatePath: RELEASE_DRAFT/default.md
token: ${{ github.token }}