forked from XiaoMi/hiui
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request XiaoMi#2862 from xiamiao1121/feature/workflows/aut…
…o-release feat: 支持自动化发布Releases日志
- Loading branch information
Showing
1 changed file
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -49,3 +49,29 @@ jobs: | |
git push origin --follow-tags | ||
env: | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
|
||
- name: Read Version | ||
id: package | ||
uses: rexdefuror/[email protected] | ||
with: | ||
file: package.json | ||
path: ./packages/ui/hiui | ||
|
||
|
||
- name: Read ChangeLog | ||
id: changelog | ||
uses: BinPar/[email protected] | ||
with: | ||
changelog-path: ./packages/ui/hiui/CHANGELOG.md | ||
version: ${{ env.PACKAGE_VERSION }} | ||
|
||
- name: Create Release Log | ||
uses: ncipollo/release-action@v1 | ||
with: | ||
# This pulls from the "Get Changelog Entry" step above, referencing it's ID to get its outputs object. | ||
# See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps | ||
tag: "@hi-ui/hiui@${{ env.PACKAGE_VERSION }}" | ||
name: ${{ env.PACKAGE_VERSION }} | ||
body: ${{ steps.changelog.outputs.version-changelog }} | ||
allowUpdates: true | ||
token: ${{ secrets.GITHUB_TOKEN }} |