Add release-please for automated releases#435
Open
workos-sdk-automation[bot] wants to merge 1 commit intomainfrom
Open
Add release-please for automated releases#435workos-sdk-automation[bot] wants to merge 1 commit intomainfrom
workos-sdk-automation[bot] wants to merge 1 commit intomainfrom
Conversation
Replace the manual version-bump workflow and PR-triggered release flow with release-please for automated changelog generation and releases. The publish workflow now triggers on GitHub release events. Also adds a PR title linter to enforce conventional commits.
Greptile OverviewGreptile SummaryThis PR modernizes the release process by replacing manual version bumping with Google's release-please automation. The new workflow automatically analyzes conventional commits to determine version bumps, generates changelogs, and creates release PRs. Key Changes:
Benefits:
Confidence Score: 5/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant Dev as Developer
participant PR as Pull Request
participant Main as Main Branch
participant RP as Release Please
participant GH as GitHub Release
participant RG as RubyGems
Dev->>PR: Create PR with conventional commit title
Note over PR: lint-pr-title.yml validates title format
PR->>Main: Merge PR
Main->>RP: Trigger release-please workflow
RP->>RP: Analyze commits since last release
RP->>RP: Determine version bump (major/minor/patch)
RP->>PR: Create/update release PR
Note over PR: Release PR updates version.rb & CHANGELOG.md
PR->>Main: Merge release PR
RP->>GH: Create GitHub release with tag
GH->>RG: Trigger release.yml workflow
RG->>RG: Extract version from tag (GITHUB_REF_NAME)
RG->>RG: Run tests
RG->>RG: Build gem
RG->>RG: Publish gem to RubyGems
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
version-bumpworkflow with release-please's automated release PR flowrelease.ymlpublish workflow to trigger on GitHub release events (created by release-please)lint-pr-title.yml) to enforce Conventional Commits, which release-please uses to determine version bumpsChanges
.github/workflows/release-please.yml— runs on push tomain, creates release PRs automatically.github/workflows/lint-pr-title.yml— validates PR titles follow conventional commit formatrelease-please-config.json— configures release-please for Ruby gem releases.release-please-manifest.json— tracks current version (6.0.0).github/workflows/release.yml— simplified to only publish to RubyGems on GitHub release events.github/workflows/version-bump.yml— no longer needed with release-please