Skip to content

Commit

Permalink
Merge pull request #2862 from xiamiao1121/feature/workflows/auto-release
Browse files Browse the repository at this point in the history
feat: 支持自动化发布Releases日志
  • Loading branch information
solarjoker authored Jun 11, 2024
2 parents ccf4e3f + b2a6b01 commit 1640bc4
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit 1640bc4

Please sign in to comment.