File tree Expand file tree Collapse file tree 4 files changed +2468
-52
lines changed Expand file tree Collapse file tree 4 files changed +2468
-52
lines changed Original file line number Diff line number Diff line change 1
1
name : Publish on NPM
2
2
3
3
on :
4
- release :
5
- types : [created ]
4
+ push :
5
+ branches : [main, beta ]
6
6
7
7
jobs :
8
8
build :
14
14
node-version : 12
15
15
registry-url : ' https://registry.npmjs.org'
16
16
- run : yarn install --frozen-lockfile
17
- - run : yarn publish
17
+ - run : yarn run build
18
+ - run : npx semantic-release
18
19
env :
19
- NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
20
+ NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " react-click-away-listener" ,
3
- "version" : " 1.5.3 " ,
3
+ "version" : " 1.0.0-semantic-release " ,
4
4
"description" : " A simple click away listener built with React Hooks" ,
5
5
"main" : " dist/react-click-away-listener.js" ,
6
6
"module" : " dist/react-click-away-listener.es.js" ,
32
32
"@babel/preset-react" : " ^7.0.0" ,
33
33
"@babel/preset-typescript" : " ^7.10.4" ,
34
34
"@rollup/plugin-babel" : " ^5.2.0" ,
35
+ "@semantic-release/npm" : " ^7.0.10" ,
35
36
"@testing-library/react" : " ^9.3.1" ,
36
37
"@types/jest" : " ^24.0.21" ,
37
38
"@types/react" : " ^16.9.11" ,
68
69
"ghooks" : {
69
70
"pre-commit" : " npm run prettier"
70
71
}
72
+ },
73
+ "release" : {
74
+ "branches" : [
75
+ " main" ,
76
+ {
77
+ "name" : " beta" ,
78
+ "prerelease" : true
79
+ }
80
+ ],
81
+ "plugins" : [
82
+ " @semantic-release/commit-analyzer" ,
83
+ " @semantic-release/npm"
84
+ ]
71
85
}
72
86
}
You can’t perform that action at this time.
0 commit comments