Skip to content

Commit

Permalink
Merge pull request #36 from theablefew/feature/fix_version_check
Browse files Browse the repository at this point in the history
Allow optional v prefix for new version
  • Loading branch information
esmarkowski authored Mar 7, 2024
2 parents 3915d5b + 842b2d7 commit a5f9988
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ jobs:
- name: Publish gem
uses: cadwallion/publish-rubygems-action@master
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
GITHUB_TOKEN: ${{secrets.STRETCHY_PA_TOKEN}}
RUBYGEMS_API_KEY: ${{secrets.RUBYGEMS_API_KEY}}
RELEASE_COMMAND: rake release
2 changes: 1 addition & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def determine_new_version(version)
when :patch
current_version.bump(:tiny)
else
version =~ /\Av\d+\.\d+\.\d+\z/ ? Versionomy.parse(version) : current_version
version =~ /\Av?\d+\.\d+\.\d+\z/ ? Versionomy.parse(version).to_s.gsub(/v/,'') : current_version
end
end

Expand Down

0 comments on commit a5f9988

Please sign in to comment.