|
9 | 9 |
|
10 | 10 | jobs:
|
11 | 11 | create-release:
|
12 |
| - if: github.repository == 'lucide-icons/lucide' |
| 12 | + if: github.repository == 'lucide-icons/lucide' && ${{ !startsWith(github.event.head_commit.message, 'fix(icons):') }} |
13 | 13 | runs-on: ubuntu-latest
|
14 | 14 | outputs:
|
15 | 15 | VERSION: ${{ steps.new-version.outputs.NEW_VERSION }}
|
|
60 | 60 | uses: softprops/action-gh-release@v1
|
61 | 61 | with:
|
62 | 62 | tag_name: ${{ steps.new-version.outputs.NEW_VERSION }}
|
63 |
| - name: New icons ${{ steps.new-version.outputs.NEW_VERSION }} |
64 |
| - body: ${{ steps.change-log.outputs.CHANGE_LOG }} |
| 63 | + name: Version ${{ steps.new-version.outputs.NEW_VERSION }} |
| 64 | + generate_release_notes: true |
| 65 | + |
| 66 | + test-semantic-release: |
| 67 | + if: github.repository == 'lucide-icons/lucide' |
| 68 | + runs-on: ubuntu-latest |
| 69 | + steps: |
| 70 | + - uses: actions/checkout@v4 |
| 71 | + |
| 72 | + - name: Semantic Release |
| 73 | + id: semantic |
| 74 | + uses: cycjimmy/semantic-release-action@v4 |
| 75 | + with: |
| 76 | + tag_format: ${version} |
| 77 | + branches: | |
| 78 | + ['new-release-workflow'] |
| 79 | + extends: | |
| 80 | + semantic-release-monorepo |
| 81 | + extra_plugins: | |
| 82 | + @semantic-release/github |
| 83 | + @semantic-release/git |
| 84 | + @semantic-release/release-notes-generator |
| 85 | + conventional-changelog-conventionalcommits |
| 86 | +
|
| 87 | + env: |
| 88 | + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 89 | + |
| 90 | + - name: Log output |
| 91 | + if: steps.semantic.outputs.new_release_published == 'true' |
| 92 | + run: | |
| 93 | + echo ${{ steps.semantic.outputs.new_release_version }} |
| 94 | + echo ${{ steps.semantic.outputs.new_release_major_version }} |
| 95 | + echo ${{ steps.semantic.outputs.new_release_minor_version }} |
| 96 | + echo ${{ steps.semantic.outputs.new_release_patch_version }} |
65 | 97 |
|
66 | 98 | start-release:
|
67 | 99 | if: github.repository == 'lucide-icons/lucide'
|
|
0 commit comments