Skip to content

Commit 9384c4e

Browse files
committed
chore: update ci.yml
1 parent 8bd7b3b commit 9384c4e

File tree

1 file changed

+40
-1
lines changed

1 file changed

+40
-1
lines changed

.github/workflows/ci.yml

Lines changed: 40 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,14 @@ jobs:
1414
with:
1515
node-version: 12
1616

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+
1725
- run: npm install
1826
- run: npm run build:lib
1927
- run: npm run doc
@@ -22,4 +30,35 @@ jobs:
2230
uses: peaceiris/actions-gh-pages@v3
2331
with:
2432
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

0 commit comments

Comments
 (0)