File tree Expand file tree Collapse file tree 1 file changed +40
-1
lines changed Expand file tree Collapse file tree 1 file changed +40
-1
lines changed Original file line number Diff line number Diff line change 14
14
with :
15
15
node-version : 12
16
16
17
+ - name : Look Changelog
18
+ uses :
jaywcjlove/[email protected]
19
+ with :
20
+ token : ${{ secrets.GITHUB_TOKEN }}
21
+ head-ref : ${{steps.create_tag.outputs.version}}
22
+ filter-author : (jaywcjlove|小弟调调™|dependabot\[bot\]|Renovate Bot)
23
+ filter : ' [R|r]elease[d]\s+[v|V]\d(\.\d+){0,2}'
24
+
17
25
- run : npm install
18
26
- run : npm run build:lib
19
27
- run : npm run doc
22
30
uses : peaceiris/actions-gh-pages@v3
23
31
with :
24
32
deploy_key : ${{ secrets.ACTIONS_DEPLOY_KEY }}
25
- publish_dir : ./build
33
+ publish_dir : ./build
34
+
35
+ - name : Create Tag
36
+ id : create_tag
37
+ uses :
jaywcjlove/[email protected]
38
+ with :
39
+ token : ${{ secrets.GITHUB_TOKEN }}
40
+ package-path : ./package.json
41
+
42
+ - name : Generate Changelog
43
+ id : changelog
44
+ uses :
jaywcjlove/[email protected]
45
+ with :
46
+ token : ${{ secrets.GITHUB_TOKEN }}
47
+ head-ref : ${{steps.create_tag.outputs.version}}
48
+ filter-author : (jaywcjlove|小弟调调™|dependabot\[bot\]|Renovate Bot)
49
+ filter : ' [R|r]elease[d]\s+[v|V]\d(\.\d+){0,2}'
50
+
51
+ - name : Create Release
52
+ id : create_release
53
+ uses : actions/create-release@latest
54
+ if : steps.create_tag.outputs.successful
55
+ env :
56
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
57
+ with :
58
+ tag_name : ${{ steps.create_tag.outputs.version }}
59
+ release_name : ${{ steps.create_tag.outputs.version }}
60
+ body : |
61
+ ${{ steps.changelog.outputs.compareurl }}
62
+ ${{ steps.changelog.outputs.changelog }}
63
+ draft : false
64
+ prerelease : false
You can’t perform that action at this time.
0 commit comments