mirror of
https://github.com/lucide-icons/lucide.git
synced 2026-05-18 10:24:49 +02:00
feat(pipeline): add separate Angular publish step using dist as the working directory & stripping publishConfig.directory from its package.json
This commit is contained in:
10
.github/workflows/release.yml
vendored
10
.github/workflows/release.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user