From ab4d191970e560cec0d75c261011bb6b2bd20149 Mon Sep 17 00:00:00 2001 From: Yordis Prieto Date: Fri, 30 Oct 2026 16:10:56 -0400 Subject: [PATCH 1/2] ci: open release PRs with the org release token since the org forbids Actions from creating pull requests Signed-off-by: Yordis Prieto --- .github/release-please-config.json | 2 +- .github/workflows/release.yml | 1 + .release-please-manifest.json | 1 - release-please-config.json | 13 ------------- 4 files changed, 2 insertions(+), 15 deletions(-) delete mode 100644 .release-please-manifest.json delete mode 100644 release-please-config.json diff --git a/.github/release-please-config.json b/.github/release-please-config.json index c6652dc..bfb27eb 100644 --- a/.github/release-please-config.json +++ b/.github/release-please-config.json @@ -35,5 +35,5 @@ "prerelease": false, "pull-request-header": "An automated release has been created for you.", "separate-pull-requests": true, - "signoff": "github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>" + "signoff": "Straw Hat Team Bot <61149376+sht-bot@users.noreply.github.com>" } diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ea7b1dd..1d2c7f6 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -25,6 +25,7 @@ jobs: with: config-file: .github/release-please-config.json manifest-file: .github/release-please-manifest.json + token: ${{ secrets.GH_PAT_RELEASE_PLEASE_ACTION }} publish: needs: release-please diff --git a/.release-please-manifest.json b/.release-please-manifest.json deleted file mode 100644 index 0967ef4..0000000 --- a/.release-please-manifest.json +++ /dev/null @@ -1 +0,0 @@ -{} diff --git a/release-please-config.json b/release-please-config.json deleted file mode 100644 index 176e1de..0000000 --- a/release-please-config.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json", - "bootstrap-sha": "6f89aa8a9992a1d204dfbc09775047940a3256cd", - "bump-minor-pre-major": true, - "include-component-in-tag": false, - "packages": { - "packages/next-nats": { - "release-type": "node", - "package-name": "@trogonstack/next-nats", - "initial-version": "0.1.0" - } - } -} From 51594f25c11635460a9ab1dab158bb2f556a91de Mon Sep 17 00:00:00 2001 From: Yordis Prieto Date: Fri, 30 Oct 2026 16:16:15 -0400 Subject: [PATCH 2/2] ci: release through the shared TrogonStack release-please action so next-nats follows the org release policy Signed-off-by: Yordis Prieto --- .github/release-please-config.json | 4 ++-- .github/release-please-manifest.json | 4 +++- .../{release.yml => release-please.yml} | 16 +++++++++------- 3 files changed, 14 insertions(+), 10 deletions(-) rename .github/workflows/{release.yml => release-please.yml} (63%) diff --git a/.github/release-please-config.json b/.github/release-please-config.json index bfb27eb..ca292c5 100644 --- a/.github/release-please-config.json +++ b/.github/release-please-config.json @@ -29,11 +29,11 @@ "pull-request-title-pattern": "chore${scope}: release @trogonstack/next-nats v${version}", "release-type": "node", "bump-minor-pre-major": true, - "bump-patch-for-minor-pre-major": true, + "bump-patch-for-minor-pre-major": false, "draft": false, "draft-pull-request": false, "prerelease": false, "pull-request-header": "An automated release has been created for you.", "separate-pull-requests": true, - "signoff": "Straw Hat Team Bot <61149376+sht-bot@users.noreply.github.com>" + "signoff": "SHT Bot <61149376+sht-bot@users.noreply.github.com>" } diff --git a/.github/release-please-manifest.json b/.github/release-please-manifest.json index 0967ef4..8c51d23 100644 --- a/.github/release-please-manifest.json +++ b/.github/release-please-manifest.json @@ -1 +1,3 @@ -{} +{ + "packages/next-nats": "0.0.0" +} diff --git a/.github/workflows/release.yml b/.github/workflows/release-please.yml similarity index 63% rename from .github/workflows/release.yml rename to .github/workflows/release-please.yml index 1d2c7f6..82263d4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release-please.yml @@ -1,4 +1,4 @@ -name: Release +name: Release Please on: push: @@ -12,24 +12,26 @@ permissions: {} jobs: release-please: + name: Release Please runs-on: ubuntu-latest + timeout-minutes: 10 permissions: contents: write - issues: write pull-requests: write outputs: - release_created: ${{ steps.release.outputs.releases_created }} + releases_created: ${{ steps.release.outputs.releases_created }} steps: + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + persist-credentials: false - id: release - uses: googleapis/release-please-action@45996ed1f6d02564a971a2fa1b5860e934307cf7 # v5.0.0 + uses: TrogonStack/github-actions/actions/release-please@ef815593d21446b5077d490219e60c0d2290b03d # release-please@v0.1.0 with: - config-file: .github/release-please-config.json - manifest-file: .github/release-please-manifest.json token: ${{ secrets.GH_PAT_RELEASE_PLEASE_ACTION }} publish: needs: release-please - if: needs.release-please.outputs.release_created == 'true' + if: needs.release-please.outputs.releases_created == 'true' runs-on: ubuntu-latest permissions: contents: read