-
Notifications
You must be signed in to change notification settings - Fork 2
47 lines (47 loc) · 1.15 KB
/
build.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
name: Build
on: [push]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v2
with:
node-version: 18.x
cache: yarn
- run: yarn install --immutable
- run: yarn lint
- run: yarn prettier --check .
- run: yarn tsc --noEmit
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v2
with:
node-version: 18.x
cache: yarn
- run: yarn install --immutable
- run: yarn playwright install chromium
- run: yarn test
- uses: actions/upload-artifact@v2
if: ${{ always() }}
with:
name: test-artifacts
path: test-results
release:
needs: [lint, test]
runs-on: ubuntu-latest
permissions:
contents: write
issues: write
pull-requests: write
steps:
- uses: mskelton/setup-yarn@v1
- name: Build
run: yarn build
- name: Release
run: yarn semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}