File tree 3 files changed +2668
-36
lines changed
3 files changed +2668
-36
lines changed Original file line number Diff line number Diff line change
1
+
2
+ name : CI
3
+ on : push
4
+ jobs :
5
+ test :
6
+ runs-on : ubuntu-latest
7
+ steps :
8
+ - uses : actions/checkout@v2
9
+ - uses : actions/setup-node@v1
10
+ with :
11
+ node-version : ' 14'
12
+ - run : npm ci
13
+ - run : npm run build
14
+ - run : npm test
15
+ - name : Release
16
+ env :
17
+ NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
18
+ GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
19
+ run : npx semantic-release
Original file line number Diff line number Diff line change 10
10
},
11
11
"scripts" : {
12
12
"build" : " tsc -b" ,
13
- "test" : " jest"
13
+ "test" : " jest" ,
14
+ "semantic-release" : " semantic-release"
14
15
},
15
16
"repository" : " https://github.com/nteract/mathjax" ,
16
17
"keywords" : [
26
27
"react-dom" : " ^16.13.0 || ^17.0.0"
27
28
},
28
29
"devDependencies" : {
29
- "react" : " ^16.13.0" ,
30
- "react-dom" : " ^16.13.0" ,
30
+ "@semantic-release/npm" : " ^7.1.3" ,
31
31
"@types/enzyme" : " ^3.10.5" ,
32
32
"@types/jest" : " ^25.1.4" ,
33
33
"@types/react" : " ^16.9.23" ,
34
+ "conventional-changelog-conventionalcommits" : " ^4.6.0" ,
34
35
"enzyme" : " ^3.11.0" ,
35
36
"enzyme-adapter-react-16" : " ^1.15.2" ,
36
37
"enzyme-to-json" : " ^3.4.4" ,
37
38
"jest" : " ^25.1.0" ,
39
+ "react" : " ^16.13.0" ,
40
+ "react-dom" : " ^16.13.0" ,
41
+ "semantic-release" : " ^17.4.4" ,
38
42
"ts-jest" : " ^25.2.1" ,
39
43
"typescript" : " ^3.8.3"
44
+ },
45
+ "release" : {
46
+ "plugins" : [
47
+ " @semantic-release/npm" ,
48
+ [
49
+ " @semantic-release/commit-analyzer" ,
50
+ {
51
+ "preset" : " conventionalcommits"
52
+ }
53
+ ]
54
+ ]
40
55
}
41
56
}
You can’t perform that action at this time.
0 commit comments