Skip to content

Commit 23c370b

Browse files
committed
semantic release
1 parent 784f1de commit 23c370b

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

.github/workflows/publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: react-charts publish
22
on:
33
push:
44
branches:
5-
- 'next'
5+
- 'main'
66
- 'beta'
77
pull_request:
88

@@ -28,7 +28,7 @@ jobs:
2828
publish-module:
2929
name: 'Publish Module to NPM'
3030
# needs: test
31-
if: github.ref == 'refs/heads/next' || github.ref == 'refs/heads/beta' #publish only when merged in master, not on PR
31+
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/beta' #publish only when merged in master, not on PR
3232
runs-on: ubuntu-latest
3333
steps:
3434
- uses: actions/checkout@v2

package.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,22 @@
3131
"peerDependencies": {
3232
"react": ">=16"
3333
},
34+
"release": {
35+
"branches": [
36+
"+([0-9])?(.{+([0-9]),x}).x",
37+
"main",
38+
"next",
39+
"next-major",
40+
{
41+
"name": "beta",
42+
"prerelease": true
43+
},
44+
{
45+
"name": "alpha",
46+
"prerelease": true
47+
}
48+
]
49+
},
3450
"husky": {
3551
"hooks": {
3652
"pre-commit": "tsdx lint"

0 commit comments

Comments
 (0)