-
Notifications
You must be signed in to change notification settings - Fork 37
34 lines (32 loc) · 936 Bytes
/
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
name: Build
on:
push:
branches:
- main
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 16
- run: yarn install --ignore-script --frozen-lockfile
- run: yarn run typecheck
- run: yarn run lint
- run: yarn run prettier
- run: yarn run test
- run: yarn run release-build:remote
- run: yarn run release-build:coc
- run: yarn run release-build:rpc
- id: check-release
run: |
if [[ $(git show --no-patch --format=%s) =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
echo ::set-output name=IS_RELEASE::true
fi
- if: steps.check-release.outputs.IS_RELEASE == 'true'
uses: peter-evans/repository-dispatch@v1
with:
token: ${{ secrets.REPO_ACCESS_TOKEN }}
event-type: can-release