From 15de1d61904823e2b8f76dfbc3f2dabbe597d479 Mon Sep 17 00:00:00 2001 From: Kevin Codex Date: Sun, 12 Apr 2026 23:59:19 +0800 Subject: [PATCH] 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 --- .github/workflows/release.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ec8e8ef8..629aabf1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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