From cd1349009a377f8057c92cb9224efb5a99d2e051 Mon Sep 17 00:00:00 2001 From: "Andrew @ Conduit" Date: Mon, 18 May 2026 16:55:24 -0500 Subject: [PATCH] chore: replace release-please with tag/workflow_dispatch trigger on publish --- .github/workflows/publish.yml | 24 +++++++++++++++++++----- .github/workflows/release-please.yml | 20 -------------------- 2 files changed, 19 insertions(+), 25 deletions(-) delete mode 100644 .github/workflows/release-please.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index f71422f..4147a09 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,16 +1,24 @@ name: Publish @openconduit/core on: - release: - types: [published] + push: + tags: + - 'v*' + workflow_dispatch: + inputs: + version: + description: 'Version to publish (e.g. 1.2.1) — must match package.json' + required: true + type: string + +permissions: + contents: write + packages: write jobs: publish: name: Publish to GitHub Packages runs-on: ubuntu-latest - permissions: - contents: read - packages: write steps: - uses: actions/checkout@v4 @@ -31,3 +39,9 @@ jobs: run: npm publish env: NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + - name: Create GitHub Release + uses: softprops/action-gh-release@v2 + with: + tag_name: ${{ github.event_name == 'workflow_dispatch' && format('v{0}', inputs.version) || github.ref_name }} + generate_release_notes: true diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml deleted file mode 100644 index 7569311..0000000 --- a/.github/workflows/release-please.yml +++ /dev/null @@ -1,20 +0,0 @@ -name: Release Please - -on: - push: - branches: - - main - -permissions: - contents: write - pull-requests: write - -jobs: - release-please: - runs-on: ubuntu-latest - steps: - - uses: googleapis/release-please-action@v4 - id: rp - with: - release-type: node - draft: true