From aff9200f6beceffa4665f1b6843237fc672baa52 Mon Sep 17 00:00:00 2001 From: xiamiao Date: Fri, 7 Jun 2024 10:29:42 +0800 Subject: [PATCH 1/3] =?UTF-8?q?feat:=20=E6=94=AF=E6=8C=81=E8=87=AA?= =?UTF-8?q?=E5=8A=A8=E5=8C=96=E5=8F=91=E5=B8=83Releases=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/release.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0d31b5ddb..9e90d6e56 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -49,3 +49,29 @@ jobs: git push origin --follow-tags env: NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + + - name: Package.json info + id: package + uses: rexdefuror/read-package-json@v1.0.5 + with: + file: package.json + path: ./packages/ui/hiui + + + - name: Read ChangeLog + id: changelog + uses: BinPar/read-conventional-commit-changelog@v2.0.2 + with: + changelog-path: ./packages/ui/hiui/CHANGELOG.md + version: ${{ env.PACKAGE_VERSION }} + + - name: Create/update release + 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: ${{ env.PACKAGE_VERSION }} + name: ${{ env.PACKAGE_VERSION }} + body: ${{ steps.changelog.outputs.version-changelog }} + allowUpdates: true + token: ${{ secrets.GITHUB_TOKEN }} From 6444d38fe23e5f289d90b617f1b1be367b382ca8 Mon Sep 17 00:00:00 2001 From: xiamiao Date: Tue, 11 Jun 2024 14:14:35 +0800 Subject: [PATCH 2/3] chore: add tag prefix --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9e90d6e56..96941ca61 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -70,7 +70,7 @@ jobs: 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: ${{ env.PACKAGE_VERSION }} + tag: "@hi-ui/hiui@${{ env.PACKAGE_VERSION }}" name: ${{ env.PACKAGE_VERSION }} body: ${{ steps.changelog.outputs.version-changelog }} allowUpdates: true From b2a6b01bbd94e2c09ffbea18e1d6f6b75373f41c Mon Sep 17 00:00:00 2001 From: xiamiao Date: Tue, 11 Jun 2024 17:58:33 +0800 Subject: [PATCH 3/3] chore: modify name --- .github/workflows/release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 96941ca61..bfd4fd7f0 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -50,7 +50,7 @@ jobs: env: NPM_TOKEN: ${{ secrets.NPM_TOKEN }} - - name: Package.json info + - name: Read Version id: package uses: rexdefuror/read-package-json@v1.0.5 with: @@ -65,7 +65,7 @@ jobs: changelog-path: ./packages/ui/hiui/CHANGELOG.md version: ${{ env.PACKAGE_VERSION }} - - name: Create/update release + - 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.