File tree Expand file tree Collapse file tree 2 files changed +6
-12
lines changed Expand file tree Collapse file tree 2 files changed +6
-12
lines changed Original file line number Diff line number Diff line change 1
1
name : Release
2
2
3
3
on :
4
+ pull_request :
5
+ branches :
6
+ - main
7
+
4
8
push :
5
9
branches :
6
10
- main
42
46
- run : (yarn server &) && sleep 1 && yarn test:integration
43
47
44
48
- run : yarn build
49
+
45
50
- run : yarn semantic-release
51
+ if : ${{ contains(github.ref, 'refs/heads/main') || contains(github.ref, 'refs/heads/beta') }}
46
52
env :
47
53
GH_TOKEN : ${{ secrets.GH_TOKEN }}
48
54
NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
Original file line number Diff line number Diff line change 108
108
"name" : " beta" ,
109
109
"prerelease" : true
110
110
}
111
- ],
112
- "plugins" : [
113
- " @semantic-release/commit-analyzer" ,
114
- " @semantic-release/release-notes-generator" ,
115
- " @semantic-release/npm" ,
116
- [
117
- " @semantic-release/exec" ,
118
- {
119
- "successCmd" : " yarn run publish:github"
120
- }
121
- ],
122
- " @semantic-release/github"
123
111
]
124
112
}
125
113
}
You can’t perform that action at this time.
0 commit comments