From 10962ce51b3f72e6c56a95fc281ebc4ecc47068f Mon Sep 17 00:00:00 2001 From: Karsa Date: Tue, 24 Mar 2026 17:36:52 +0100 Subject: [PATCH] feat(pipeline): add separate Angular publish step using dist as the working directory & stripping publishConfig.directory from its package.json --- .github/workflows/release.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6896edeef..d572a044a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -117,10 +117,20 @@ jobs: run: pnpm --filter lucide-static build - name: Publish + if: matrix.package != '@lucide/angular' run: pnpm --filter lucide-static publish --no-git-checks --ignore-scripts --tag ${{ inputs.tag }} --access public env: NPM_CONFIG_PROVENANCE: true + - name: Publish + if: matrix.package == '@lucide/angular' + run: | + node -e "const fs=require('fs'); const p='package.json'; const pkg=JSON.parse(fs.readFileSync(p,'utf8')); if(pkg.publishConfig){ delete pkg.publishConfig.directory; if(Object.keys(pkg.publishConfig).length===0) delete pkg.publishConfig; } fs.writeFileSync(p, JSON.stringify(pkg, null, 2)+'\n');" + pnpm publish --no-git-checks --ignore-scripts --tag ${{ inputs.tag }} --access public + working-directory: packages/${{ matrix.package }}/dist + env: + NPM_CONFIG_PROVENANCE: true + lucide-font: if: github.repository == 'lucide-icons/lucide' runs-on: ubuntu-latest