-
Notifications
You must be signed in to change notification settings - Fork 5
57 lines (52 loc) · 1.43 KB
/
ci.yml
File metadata and controls
57 lines (52 loc) · 1.43 KB
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
55
56
57
name: CI
on:
schedule:
- cron: '0 22 * * 3'
pull_request:
branches:
- main
push:
branches:
- main
permissions:
contents: read
jobs:
test-typescript:
name: TypeScript Tests
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: Setup Node.js
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
with:
node-version: 20
cache: yarn
- name: Install Dependencies
run: yarn install --immutable
- name: Check Format
run: yarn format:check
- name: Lint
run: yarn lint
- name: Test
run: yarn ci-test
release:
name: release
runs-on: ubuntu-latest
needs: test-typescript
if: github.ref == 'refs/heads/main'
permissions:
contents: write # for making github release
pull-requests: write # for commenting release version
issues: write # for commenting release version
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: Run semantic release
uses: electron/semantic-trusted-release@03517840010ba30fe5264f4875f4cff066b658d1 # v1.1.0
with:
github-token: ${{ secrets.GITHUB_TOKEN }}