mirror of
https://github.com/lucide-icons/lucide.git
synced 2026-05-18 08:45:08 +02:00
* Add new lucide angular package * feat(packages/angular): added initial @lucide/angular package * feat(packages/angular): update readme * feat(packages/angular): update angular.json * docs(packages/angular): added (for now) full documentation for @lucide/angular * docs(packages/angular): added migration guide from lucide-angular * fix(github): fix package label syntax 😅 * fix(lint): fix linting issues * fix(github/angular): add prebuild stage * fix(github/angular): add prebuild stage & fix tests * fix(github/angular): fix LucideIconComponentType, update with _real_ public members * fix(github/angular): add prebuild to build step manually * fix(github/angular): downgrade vitest * fix(packages/angular): fix migration guide code example * fix(packages): add vitest + @vitest/* to pnpm overrides * fix(packages): update pnpm-lock with merged version * Apply suggestions from code review Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * fix(packages): fix aria-hidden logic * fix(packages): update pnpm-lock * fix(packages): extract vitest and jsdom to root devDependencies * Fix copy utils script * Format code * feat(packages/angular): switched to self-describing IconData object from separate node+name – no more toKebabCase hackery feat(packages/angular): renamed LucideIconComponentType => LucideIcon, and LucideIcon => LucideDynamicIcon feat(packages/angular): added backwards compatible CSS class support feat(packages/angular): switched to vector-effect: non-scaling-stroke implementation from computed stroke width feat(packages/angular): rewrote icon provider to only accept a list of self-described icons – no more toKebabCase hackery & as an added bonus automatic backwards compatible alias support 🚀 feat(packages/angular): added legacy icon node helper function for passing legacy icons to providers test(packages/angular): added unit tests on LUCIDE_CONFIG provider usage * fix(packages/angular): fix linting issues * feat(packages/angular): extract createLucideIcon logic into helper function, refactor export template to use the iconData object as defined in ExportTemplate * Replace author * Remove private field * fix(packages/angular): remove createLucideIcon, it breaks the package :'( * fix(packages/angular): fix rendering order of child elements (_before_ projected content) * Format package.json * Update docs/guide/packages/angular.md Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update packages/angular/MIGRATION.md Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --------- Co-authored-by: Eric Fennis <eric.fennis@gmail.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
174 lines
4.8 KiB
YAML
174 lines
4.8 KiB
YAML
name: Release Packages
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- 'v*'
|
|
|
|
workflow_call:
|
|
inputs:
|
|
version:
|
|
required: true
|
|
description: Version
|
|
type: string
|
|
tag:
|
|
description: NPM tag
|
|
default: 'latest'
|
|
type: string
|
|
|
|
permissions:
|
|
id-token: write # Required for OIDC
|
|
contents: write
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
|
|
jobs:
|
|
prepare:
|
|
if: github.repository == 'lucide-icons/lucide' && contains('["ericfennis", "karsa-mistmere", "jguddas"]', github.actor)
|
|
runs-on: ubuntu-latest
|
|
outputs:
|
|
VERSION: ${{ steps.get_version.outputs.VERSION }}
|
|
|
|
steps:
|
|
- name: Get the version
|
|
id: get_version
|
|
run: |
|
|
echo $VERSION_REF
|
|
echo "VERSION=${VERSION_REF/refs\/tags\/\v}" >> $GITHUB_OUTPUT
|
|
env:
|
|
VERSION_REF: ${{ inputs.version || github.event.inputs.version || github.ref }}
|
|
|
|
release:
|
|
if: github.repository == 'lucide-icons/lucide'
|
|
runs-on: ubuntu-latest
|
|
needs: prepare
|
|
permissions:
|
|
id-token: write # Required for OIDC
|
|
contents: read
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
package: [
|
|
'lucide',
|
|
'lucide-react',
|
|
'lucide-react-native',
|
|
# 'lucide-vue-next',
|
|
'lucide-angular',
|
|
'lucide-preact',
|
|
'lucide-solid',
|
|
'lucide-svelte',
|
|
'@lucide/angular',
|
|
'@lucide/astro',
|
|
'@lucide/svelte',
|
|
'@lucide/icons',
|
|
'@lucide/vue',
|
|
]
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
- uses: pnpm/action-setup@v4
|
|
- uses: actions/setup-node@v6
|
|
with:
|
|
cache: 'pnpm'
|
|
node-version-file: 'package.json'
|
|
|
|
- name: Install dependencies
|
|
run: pnpm install --frozen-lockfile
|
|
|
|
- name: Set new version
|
|
run: pnpm --filter ${{ matrix.package }} version --new-version ${{ needs.prepare.outputs.VERSION }} --no-git-tag-version
|
|
|
|
- name: Build
|
|
run: pnpm --filter ${{ matrix.package }} build
|
|
|
|
- name: Test
|
|
run: pnpm --filter ${{ matrix.package }} test
|
|
|
|
- name: Publish
|
|
run: pnpm --filter ${{ matrix.package }} publish --access public --no-git-checks --ignore-scripts --tag ${{ inputs.tag }} --access public
|
|
env:
|
|
NPM_CONFIG_PROVENANCE: true
|
|
|
|
lucide-static:
|
|
if: github.repository == 'lucide-icons/lucide'
|
|
runs-on: ubuntu-latest
|
|
needs: [prepare, lucide-font]
|
|
permissions:
|
|
id-token: write # Required for OIDC
|
|
contents: read
|
|
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
- uses: actions/download-artifact@v4
|
|
- uses: pnpm/action-setup@v4
|
|
- uses: actions/setup-node@v6
|
|
with:
|
|
cache: 'pnpm'
|
|
node-version-file: 'package.json'
|
|
|
|
- name: Install dependencies
|
|
run: pnpm install --frozen-lockfile
|
|
|
|
- name: Set new version
|
|
run: pnpm --filter lucide-static version --new-version ${{ needs.prepare.outputs.VERSION }} --no-git-tag-version
|
|
|
|
- name: Move Font
|
|
run: cp -r lucide-font packages/lucide-static/font
|
|
|
|
- name: Build
|
|
run: pnpm --filter lucide-static build
|
|
|
|
- name: Publish
|
|
run: pnpm --filter lucide-static publish --no-git-checks --ignore-scripts --tag ${{ inputs.tag }} --access public
|
|
env:
|
|
NPM_CONFIG_PROVENANCE: true
|
|
|
|
lucide-font:
|
|
if: github.repository == 'lucide-icons/lucide'
|
|
runs-on: ubuntu-latest
|
|
needs: prepare
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
- uses: pnpm/action-setup@v4
|
|
- uses: actions/setup-node@v6
|
|
with:
|
|
cache: 'pnpm'
|
|
node-version-file: 'package.json'
|
|
|
|
- name: Install dependencies
|
|
run: pnpm install --frozen-lockfile
|
|
|
|
- name: Create font in ./lucide-font
|
|
run: pnpm build:font --saveCodePoints
|
|
env:
|
|
BLOB_READ_WRITE_TOKEN: ${{ secrets.BLOB_READ_WRITE_TOKEN }}
|
|
|
|
- name: 'Upload to Artifacts'
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: lucide-font
|
|
path: lucide-font
|
|
|
|
post-release:
|
|
if: github.repository == 'lucide-icons/lucide'
|
|
runs-on: ubuntu-latest
|
|
needs: [prepare, lucide-font]
|
|
permissions:
|
|
id-token: write # Required for OIDC
|
|
contents: write
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
- uses: actions/download-artifact@v4
|
|
- name: Zip font and icons
|
|
run: |
|
|
zip -r lucide-font-${{ needs.prepare.outputs.VERSION }}.zip lucide-font
|
|
zip -r lucide-icons-${{ needs.prepare.outputs.VERSION }}.zip icons
|
|
|
|
- name: Release zip and fonts
|
|
uses: softprops/action-gh-release@v2
|
|
with:
|
|
tag_name: ${{ needs.prepare.outputs.VERSION }}
|
|
files: |
|
|
lucide-font-${{ needs.prepare.outputs.VERSION }}.zip
|
|
lucide-icons-${{ needs.prepare.outputs.VERSION }}.zip
|