feat(pipeline): re-revert from the working-directory solution & set default tag as latest

This commit is contained in:
Karsa
2026-03-24 16:18:39 +01:00
parent 519aae64d6
commit 3fc90467a3

View File

@@ -13,7 +13,7 @@ on:
type: string
tag:
description: NPM tag
default: 'next' # set to latest after v1 release
default: 'latest'
type: string
permissions:
@@ -56,11 +56,11 @@ jobs:
'lucide-react-native',
'lucide-preact',
'lucide-solid',
'angular',
'astro',
'icons',
'svelte',
'vue',
'@lucide/angular',
'@lucide/astro',
'@lucide/icons',
'@lucide/svelte',
'@lucide/vue',
]
steps:
- uses: actions/checkout@v6
@@ -74,20 +74,16 @@ jobs:
run: pnpm install --frozen-lockfile
- name: Set new version
run: pnpm version --new-version ${{ needs.prepare.outputs.VERSION }} --no-git-tag-version
working-directory: packages/${{ matrix.package }}
run: pnpm --fail-if-no-match --filter ${{ matrix.package }} version --new-version ${{ needs.prepare.outputs.VERSION }} --no-git-tag-version
- name: Build
run: pnpm build
working-directory: packages/${{ matrix.package }}
run: pnpm --filter ${{ matrix.package }} build
- name: Test
run: pnpm test
working-directory: packages/${{ matrix.package }}
run: pnpm --filter ${{ matrix.package }} test
- name: Publish
run: pnpm publish --access public --no-git-checks --ignore-scripts --tag ${{ inputs.tag }}
working-directory: packages/${{ matrix.package }}
run: pnpm --filter ${{ matrix.package }} publish --access public --no-git-checks --ignore-scripts --tag ${{ inputs.tag }}
env:
NPM_CONFIG_PROVENANCE: true