File tree 5 files changed +69
-3
lines changed
5 files changed +69
-3
lines changed Original file line number Diff line number Diff line change
1
+ name : Bump
2
+
3
+ on :
4
+ push :
5
+ branches : [main]
6
+
7
+ jobs :
8
+ bump :
9
+ runs-on : ubuntu-latest
10
+ steps :
11
+ - run : yarn bump:patch
12
+ - name : Push changes
13
+ uses : ad-m/github-push-action@master
14
+ with :
15
+ github_token : ${{ secrets.GITHUB_TOKEN }}
16
+ branch : ${{ github.ref }}
17
+ tags : true
Original file line number Diff line number Diff line change 33
33
with :
34
34
name : coverage
35
35
path : coverage
36
+ lint :
37
+ runs-on : ubuntu-latest
38
+ steps :
39
+ - name : Checkout
40
+ uses : actions/checkout@v2
41
+
42
+ - name : Caches
43
+ uses : actions/cache@v2
44
+ id : yarn-node-module-cache
45
+ with :
46
+ path : node_modules
47
+ key : ${{ runner.os }}-node_modules-${{ hashFiles('**/yarn.lock') }}
48
+
49
+ - name : Node14
50
+ uses : actions/setup-node@v2
51
+ with :
52
+ node-version : ' 14'
53
+
54
+ - name : Install
55
+ if : steps.yarn-node-module-cache.outputs.cache-hit != 'true'
56
+ run : yarn install
57
+
58
+ - name : Eslint
59
+ run : yarn lint
60
+ tsc :
61
+ runs-on : ubuntu-latest
62
+ steps :
63
+ - name : Checkout
64
+ uses : actions/checkout@v2
65
+
66
+ - name : Caches
67
+ uses : actions/cache@v2
68
+ id : yarn-node-module-cache
69
+ with :
70
+ path : node_modules
71
+ key : ${{ runner.os }}-node_modules-${{ hashFiles('**/yarn.lock') }}
72
+
73
+ - name : Node14
74
+ uses : actions/setup-node@v2
75
+ with :
76
+ node-version : ' 14'
77
+
78
+ - name : Install
79
+ if : steps.yarn-node-module-cache.outputs.cache-hit != 'true'
80
+ run : yarn install
81
+
82
+ - name : Typescript
83
+ run : yarn tsc
36
84
build :
37
- needs : coverage
85
+ needs : [ coverage, tsc, lint]
38
86
runs-on : ubuntu-latest
39
87
steps :
40
88
- name : Checkout
Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
2
. " $( dirname " $0 " ) /_/husky.sh"
3
3
4
- yarn lint
4
+ yarn lint && yarn tsc
Original file line number Diff line number Diff line change 34
34
"start" : " next start" ,
35
35
"format" : " prettier --write ." ,
36
36
"lint" : " eslint --fix ." ,
37
+ "tsc" : " tsc --noEmit" ,
37
38
"test" : " jest --silent" ,
38
39
"coverage" : " jest --coverage --silent" ,
39
40
"e2e" : " cypress run --headless" ,
Load Diff Large diffs are not rendered by default.
You can’t perform that action at this time.
0 commit comments