From 2c3b6754d5f84c17ab05075de57a98c01f70a8e9 Mon Sep 17 00:00:00 2001 From: Eric Fennis Date: Fri, 7 Mar 2025 12:59:41 +0100 Subject: [PATCH] ci: Update the release workflow --- .github/workflows/ci.yml | 38 +++++++++++++++++++++++++++++++++++--- 1 file changed, 35 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1384ee7d6..1613e1284 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,7 +9,7 @@ on: jobs: create-release: - if: github.repository == 'lucide-icons/lucide' + if: github.repository == 'lucide-icons/lucide' && ${{ !startsWith(github.event.head_commit.message, 'fix(icons):') }} runs-on: ubuntu-latest outputs: VERSION: ${{ steps.new-version.outputs.NEW_VERSION }} @@ -60,8 +60,40 @@ jobs: uses: softprops/action-gh-release@v1 with: tag_name: ${{ steps.new-version.outputs.NEW_VERSION }} - name: New icons ${{ steps.new-version.outputs.NEW_VERSION }} - body: ${{ steps.change-log.outputs.CHANGE_LOG }} + name: Version ${{ steps.new-version.outputs.NEW_VERSION }} + generate_release_notes: true + + test-semantic-release: + if: github.repository == 'lucide-icons/lucide' + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Semantic Release + id: semantic + uses: cycjimmy/semantic-release-action@v4 + with: + tag_format: ${version} + branches: | + ['new-release-workflow'] + extends: | + semantic-release-monorepo + extra_plugins: | + @semantic-release/github + @semantic-release/git + @semantic-release/release-notes-generator + conventional-changelog-conventionalcommits + + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + - name: Log output + if: steps.semantic.outputs.new_release_published == 'true' + run: | + echo ${{ steps.semantic.outputs.new_release_version }} + echo ${{ steps.semantic.outputs.new_release_major_version }} + echo ${{ steps.semantic.outputs.new_release_minor_version }} + echo ${{ steps.semantic.outputs.new_release_patch_version }} start-release: if: github.repository == 'lucide-icons/lucide'