File tree 3 files changed +69
-90
lines changed
3 files changed +69
-90
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ name : Quality Check & Release
2
+
3
+ on :
4
+ push :
5
+ branches : [main, beta]
6
+ pull_request :
7
+ types : [opened, synchronize]
8
+
9
+ permissions :
10
+ contents : write
11
+ pull-requests : write
12
+ issues : read
13
+ packages : none
14
+
15
+ jobs :
16
+ lint :
17
+ name : ESLint
18
+ runs-on : ubuntu-latest
19
+ steps :
20
+ - uses : actions/checkout@v2
21
+ - name : Install dependencies
22
+ uses : bahmutov/npm-install@v1
23
+ - name : Lint files
24
+ run : yarn lint
25
+
26
+ type-check :
27
+ name : Type check
28
+ runs-on : ubuntu-latest
29
+ steps :
30
+ - uses : actions/checkout@v2
31
+ - name : Install dependencies
32
+ uses : bahmutov/npm-install@v1
33
+ - name : Perform type checking
34
+ run : yarn lint:types
35
+
36
+ publish :
37
+ name : Release
38
+ needs : [lint, type-check]
39
+ if : github.ref == 'refs/heads/main' || github.ref == 'refs/heads/beta'
40
+ runs-on : ubuntu-latest
41
+ steps :
42
+ - uses : actions/checkout@v2
43
+ - name : Install dependencies
44
+ uses : bahmutov/npm-install@v1
45
+ - name : Semantic release
46
+ run : npx semantic-release@19
47
+ env :
48
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change
1
+ {
2
+ "branches": [
3
+ "main",
4
+ {
5
+ "name": "beta",
6
+ "prerelease": true
7
+ },
8
+ "next"
9
+ ],
10
+ "plugins": [
11
+ "@semantic-release/commit-analyzer",
12
+ "@semantic-release/release-notes-generator",
13
+ [
14
+ "@semantic-release/npm",
15
+ {
16
+ "npmPublish": false
17
+ }
18
+ ],
19
+ "@semantic-release/github"
20
+ ]
21
+ }
You can’t perform that action at this time.
0 commit comments