From dd610327acdc8aee6092b90407af55952d1844e2 Mon Sep 17 00:00:00 2001 From: Mat Milbury Date: Mon, 27 Apr 2026 11:12:20 +0200 Subject: [PATCH] fix: combine release-please and publish into single workflow The separate release-please.yml created tags via GITHUB_TOKEN, which does not trigger downstream on-tag workflows (GitHub Actions limitation). This meant release.yml never ran for v0.2.2 or v0.3.0, so npm publish never happened. Merge both into release.yml following the openclaw-plugin pattern: release-please runs first, then publish gates on releases_created output. Also adds workflow_dispatch to manually trigger publishes. Co-Authored-By: Claude Opus 4.6 (1M context) --- .github/workflows/release-please.yml | 16 ---------------- .github/workflows/release.yml | 22 ++++++++++++++++++++-- 2 files changed, 20 insertions(+), 18 deletions(-) delete mode 100644 .github/workflows/release-please.yml diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml deleted file mode 100644 index 3fa26a7..0000000 --- a/.github/workflows/release-please.yml +++ /dev/null @@ -1,16 +0,0 @@ -name: Release Please - -on: - push: - branches: [main] - -jobs: - release-please: - runs-on: ubuntu-latest - permissions: - contents: write - pull-requests: write - steps: - - uses: googleapis/release-please-action@v4 - with: - release-type: node diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 66fa58c..e405cc5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,13 +1,31 @@ name: Release + on: push: - tags: ["v*"] + branches: [main] + workflow_dispatch: jobs: - publish: + release-please: + if: ${{ github.event_name == 'push' }} runs-on: ubuntu-latest permissions: contents: write + pull-requests: write + outputs: + releases_created: ${{ steps.release.outputs.releases_created }} + steps: + - uses: googleapis/release-please-action@v4 + id: release + with: + release-type: node + + publish: + needs: release-please + if: ${{ always() && (needs.release-please.outputs.releases_created == 'true' || github.event_name == 'workflow_dispatch') }} + runs-on: ubuntu-latest + permissions: + contents: read id-token: write steps: - uses: actions/checkout@v4