-
Notifications
You must be signed in to change notification settings - Fork 23
Add release-please for automated releases #84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Replace the manual version-bump and release workflows with release-please, which automatically creates release PRs with version bumps and changelogs based on conventional commits. When a release PR is merged, it publishes to Hex. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Greptile OverviewGreptile SummaryThis PR replaces the manual version bump and release workflows with release-please automation. The new workflow automatically creates release PRs based on conventional commits and publishes to Hex when merged. Key changes:
The implementation correctly uses GitHub App token generation, appropriate permissions scoping, and the elixir release type for release-please. Confidence Score: 5/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant Dev as Developer
participant Main as main branch
participant RP as release-please action
participant GH as GitHub
participant Hex as Hex.pm
Dev->>Main: Push commits with conventional commit messages
Main->>RP: Trigger release-please workflow
RP->>GH: Generate app token (SDK_BOT)
GH-->>RP: Return token
RP->>RP: Analyze commits since last release
RP->>GH: Create/update release PR with version bump & changelog
Note over Dev,GH: Release PR is reviewed and merged
Dev->>Main: Merge release PR
Main->>RP: Trigger release-please workflow
RP->>GH: Generate app token (SDK_BOT)
GH-->>RP: Return token
RP->>GH: Create GitHub release with tag
RP->>RP: Set release_created=true output
Note over RP,Hex: Publish job starts (if release created)
RP->>GH: Checkout code
RP->>RP: Setup Elixir & Erlang (1.15, OTP 26.0)
RP->>RP: Install dependencies (mix deps.get)
RP->>Hex: Publish package (mix hex.publish --yes)
Hex-->>RP: Publish success
|
3 similar comments
Greptile OverviewGreptile SummaryThis PR replaces the manual version bump and release workflows with release-please automation. The new workflow automatically creates release PRs based on conventional commits and publishes to Hex when merged. Key changes:
The implementation correctly uses GitHub App token generation, appropriate permissions scoping, and the elixir release type for release-please. Confidence Score: 5/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant Dev as Developer
participant Main as main branch
participant RP as release-please action
participant GH as GitHub
participant Hex as Hex.pm
Dev->>Main: Push commits with conventional commit messages
Main->>RP: Trigger release-please workflow
RP->>GH: Generate app token (SDK_BOT)
GH-->>RP: Return token
RP->>RP: Analyze commits since last release
RP->>GH: Create/update release PR with version bump & changelog
Note over Dev,GH: Release PR is reviewed and merged
Dev->>Main: Merge release PR
Main->>RP: Trigger release-please workflow
RP->>GH: Generate app token (SDK_BOT)
GH-->>RP: Return token
RP->>GH: Create GitHub release with tag
RP->>RP: Set release_created=true output
Note over RP,Hex: Publish job starts (if release created)
RP->>GH: Checkout code
RP->>RP: Setup Elixir & Erlang (1.15, OTP 26.0)
RP->>RP: Install dependencies (mix deps.get)
RP->>Hex: Publish package (mix hex.publish --yes)
Hex-->>RP: Publish success
|
Greptile OverviewGreptile SummaryThis PR replaces the manual version bump and release workflows with release-please automation. The new workflow automatically creates release PRs based on conventional commits and publishes to Hex when merged. Key changes:
The implementation correctly uses GitHub App token generation, appropriate permissions scoping, and the elixir release type for release-please. Confidence Score: 5/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant Dev as Developer
participant Main as main branch
participant RP as release-please action
participant GH as GitHub
participant Hex as Hex.pm
Dev->>Main: Push commits with conventional commit messages
Main->>RP: Trigger release-please workflow
RP->>GH: Generate app token (SDK_BOT)
GH-->>RP: Return token
RP->>RP: Analyze commits since last release
RP->>GH: Create/update release PR with version bump & changelog
Note over Dev,GH: Release PR is reviewed and merged
Dev->>Main: Merge release PR
Main->>RP: Trigger release-please workflow
RP->>GH: Generate app token (SDK_BOT)
GH-->>RP: Return token
RP->>GH: Create GitHub release with tag
RP->>RP: Set release_created=true output
Note over RP,Hex: Publish job starts (if release created)
RP->>GH: Checkout code
RP->>RP: Setup Elixir & Erlang (1.15, OTP 26.0)
RP->>RP: Install dependencies (mix deps.get)
RP->>Hex: Publish package (mix hex.publish --yes)
Hex-->>RP: Publish success
|
Greptile OverviewGreptile SummaryThis PR replaces the manual version bump and release workflows with release-please automation. The new workflow automatically creates release PRs based on conventional commits and publishes to Hex when merged. Key changes:
The implementation correctly uses GitHub App token generation, appropriate permissions scoping, and the elixir release type for release-please. Confidence Score: 5/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant Dev as Developer
participant Main as main branch
participant RP as release-please action
participant GH as GitHub
participant Hex as Hex.pm
Dev->>Main: Push commits with conventional commit messages
Main->>RP: Trigger release-please workflow
RP->>GH: Generate app token (SDK_BOT)
GH-->>RP: Return token
RP->>RP: Analyze commits since last release
RP->>GH: Create/update release PR with version bump & changelog
Note over Dev,GH: Release PR is reviewed and merged
Dev->>Main: Merge release PR
Main->>RP: Trigger release-please workflow
RP->>GH: Generate app token (SDK_BOT)
GH-->>RP: Return token
RP->>GH: Create GitHub release with tag
RP->>RP: Set release_created=true output
Note over RP,Hex: Publish job starts (if release created)
RP->>GH: Checkout code
RP->>RP: Setup Elixir & Erlang (1.15, OTP 26.0)
RP->>RP: Install dependencies (mix deps.get)
RP->>Hex: Publish package (mix hex.publish --yes)
Hex-->>RP: Publish success
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
3 files reviewed, no comments
Summary
version-bump.ymlandrelease.ymlworkflows withrelease-pleaseSDK_BOT_APP_ID/SDK_BOT_PRIVATE_KEYsecrets)Changes
.github/workflows/release-please.yml- Combined workflow that runs release-please and publishes to Hex on releaserelease-please-config.json- Configuration using theelixirrelease type.release-please-manifest.json- Tracks current version (1.1.4).github/workflows/version-bump.yml- Replaced by release-please.github/workflows/release.yml- Replaced by release-pleaseTest plan
🤖 Generated with Claude Code