chore(ci): mark GitHub release as pre-release if not on "latest" npm channel (#7386)

Co-authored-by: Tommaso Sciortino <sciortino@gmail.com>
This commit is contained in:
ljxfstorm
2025-12-03 05:59:53 +08:00
committed by GitHub
parent aa544c40de
commit 2d935b3798

View File

@@ -262,7 +262,8 @@ runs:
--target "${{ steps.release_branch.outputs.BRANCH_NAME }}" \
--title "Release ${{ inputs.release-tag }}" \
--notes-start-tag "${{ inputs.previous-tag }}" \
--generate-notes
--generate-notes \
${{ inputs.npm-tag != 'latest' && '--prerelease' || '' }}
- name: '🧹 Clean up release branch'
working-directory: '${{ inputs.working-directory }}'