Files
lucide/.github/workflows/ci.yml
T
2024-10-10 05:36:17 +02:00

62 lines
1.7 KiB
YAML

name: Continuous integration icons
on:
push:
branches:
# - main
- '*'
# paths:
# - icons/**/*.svg
jobs:
create-release:
# Only create a new releases for new icons
if: github.repository == 'lucide-icons/lucide'
# && startsWith(github.event.head_commit.message, 'feat(icons):')
runs-on: ubuntu-latest
outputs:
VERSION: ${{ steps.semantic.outputs.new_release_version }}
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v2
with:
version: 8
- uses: actions/setup-node@v4
with:
cache: 'pnpm'
- name: Semantic Release
id: semantic
uses: cycjimmy/semantic-release-action@v4
with:
dry_run: true
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: Create Release
# uses: softprops/action-gh-release@v1
# with:
# tag_name: ${{ steps.semantic.outputs.new_release_version }}
# name: Version ${{ steps.semantic.outputs.new_release_version }}
# body: ${{ steps.semantic.outputs.new_release_notes }}
# start-release:
# if: github.repository == 'lucide-icons/lucide'
# needs: create-release
# uses: './.github/workflows/release.yml'
# secrets: inherit
# with:
# version: ${{ needs.create-release.outputs.VERSION }}