-
Notifications
You must be signed in to change notification settings - Fork 1
48 lines (43 loc) · 1.06 KB
/
release.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
47
48
name: Quality Check & Release
on:
push:
branches: [main, beta]
pull_request:
types: [opened, synchronize]
permissions:
contents: write
pull-requests: write
issues: read
packages: none
jobs:
lint:
name: ESLint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install dependencies
uses: bahmutov/npm-install@v1
- name: Lint files
run: yarn lint
type-check:
name: Type check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install dependencies
uses: bahmutov/npm-install@v1
- name: Perform type checking
run: yarn lint:types
publish:
name: Release
needs: [lint, type-check]
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/beta'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install dependencies
uses: bahmutov/npm-install@v1
- name: Semantic release
run: npx semantic-release@19
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}