Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: 支持自动化发布Releases日志 #2862

Merged
merged 3 commits into from
Jun 11, 2024
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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: Package.json info
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

建议 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/update release
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

建议 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 }}