Fix/release please invalid input (#624)

* ci: remove invalid release-please input

* ci: add npm publish debug diagnostics

* ci: allow manual publish of existing release tags
This commit is contained in:
Kevin Codex
2026-04-12 23:59:19 +08:00
committed by GitHub
parent 812facf024
commit 15de1d6190

View File

@@ -4,6 +4,12 @@ on:
push:
branches:
- main
workflow_dispatch:
inputs:
tag_name:
description: Existing tag to publish, for example v0.2.0
required: true
type: string
concurrency:
group: auto-release-${{ github.ref }}
@@ -31,7 +37,7 @@ jobs:
publish-npm:
name: Publish to npm
needs: release-please
if: ${{ needs.release-please.outputs.release_created == 'true' }}
if: ${{ github.event_name == 'workflow_dispatch' || needs.release-please.outputs.release_created == 'true' }}
runs-on: ubuntu-latest
environment: release
permissions:
@@ -41,7 +47,7 @@ jobs:
- name: Checkout release tag
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5
with:
ref: ${{ needs.release-please.outputs.tag_name }}
ref: ${{ github.event_name == 'workflow_dispatch' && inputs.tag_name || needs.release-please.outputs.tag_name }}
fetch-depth: 0
- name: Set up Node.js