diff --git a/.github/release-please-config.json b/.github/release-please-config.json index c6652dc..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": "github-actions[bot] <41898282+github-actions[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 58% rename from .github/workflows/release.yml rename to .github/workflows/release-please.yml index ea7b1dd..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,23 +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 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" - } - } -}