fix: Use version.rb for gem versioning with release-please#17
Merged
facundofarias merged 1 commit intomasterfrom Feb 19, 2026
Merged
fix: Use version.rb for gem versioning with release-please#17facundofarias merged 1 commit intomasterfrom
facundofarias merged 1 commit intomasterfrom
Conversation
Move version to lib/deploy_agent/version.rb as a simple constant, reference it from the gemspec via require_relative, and configure release-please to bump it automatically via version-file. This fixes the release pipeline which was publishing stale versions because release-please didn't know where to update the version. Also removes the VERSION file workaround from CI and documents the versioning strategy in CLAUDE.md. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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
lib/deploy_agent/version.rbto defineDeployAgent::VERSIONas a plain constant (set to1.4.0)deploy-agent.gemspecto read version fromDeployAgent::VERSIONviarequire_relativeversion-filetorelease-please-config.jsonso release-please bumpsversion.rbautomaticallyVERSIONfile workaround from the CI release job (no longer needed)Context
The previous release (1.4.0) failed to publish to RubyGems because release-please updated the manifest and CHANGELOG but not the gemspec — the gem was built with version 1.3.3 which was already published.
Test plan
🤖 Generated with Claude Code