File tree 3 files changed +15
-9
lines changed
3 files changed +15
-9
lines changed Original file line number Diff line number Diff line change 1
1
name : Release
2
+
2
3
on :
3
- push :
4
- branches :
5
- - master
4
+ pull_request :
5
+ types : [closed]
6
+
6
7
jobs :
7
8
check-next-version :
8
9
runs-on : ubuntu-latest
@@ -15,10 +16,13 @@ jobs:
15
16
next_version : ${{ steps.versionCheck.outputs.next_version }}
16
17
current_version : ${{ steps.versionCheck.outputs.current_version }}
17
18
19
+ if : github.event.pull_request.merged == true && github.event.pull_request.base.ref == 'master'
20
+
18
21
steps :
19
22
- uses : actions/checkout@v3
20
23
with :
21
24
fetch-depth : 0
25
+ ref : master
22
26
23
27
- name : Use Node.js ${{ matrix.node-version }}
24
28
uses : actions/setup-node@v3
58
62
- uses : actions/checkout@v3
59
63
with :
60
64
fetch-depth : 0
65
+ ref : master
61
66
62
67
- name : Use Node.js ${{ matrix.node-version }}
63
68
uses : actions/setup-node@v3
@@ -131,6 +136,7 @@ jobs:
131
136
- uses : actions/checkout@v3
132
137
with :
133
138
fetch-depth : 0
139
+ ref : master
134
140
135
141
- name : Use Node.js ${{ matrix.node-version }}
136
142
uses : actions/setup-node@v3
@@ -153,7 +159,7 @@ jobs:
153
159
run : npm ci --ignore-scripts
154
160
155
161
- name : Generate release notes
156
- run : node ./node_modules/.bin/happy-release-notes --author=githubUsername > ./RELEASE_NOTES.md
162
+ run : node ./node_modules/.bin/happy-release-notes --author=githubUsername --authorUsername=${{ github.event.pull_request.user.login }} > ./RELEASE_NOTES.md
157
163
158
164
- name : Create release
159
165
id : create_release
Original file line number Diff line number Diff line change 17
17
"devDependencies" : {
18
18
"@types/he" : " ^1.1.2" ,
19
19
"@types/node" : " ^16.11.7" ,
20
- "happy-conventional-commit" : " ^0.0.18 " ,
20
+ "happy-conventional-commit" : " ^0.1.0 " ,
21
21
"chalk" : " ^4.1.0" ,
22
22
"@typescript-eslint/eslint-plugin" : " ^6.19.0" ,
23
23
"@typescript-eslint/parser" : " ^6.19.0" ,
You can’t perform that action at this time.
0 commit comments