Skip to content

Commit

Permalink
Add rake task to tag from current version
Browse files Browse the repository at this point in the history
  • Loading branch information
kachick committed Aug 28, 2024
1 parent 5f5a99f commit b334071
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,8 @@ Style/Dir:

Style/DisableCopsWithinSourceCodeDirective:
Enabled: true
Exclude:
- Rakefile

Style/DocumentDynamicEvalDefinition:
Enabled: false
Expand Down
4 changes: 4 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -148,3 +148,7 @@ task :check_non_ruby do
# nix fmt doesn't have check: https://github.com/NixOS/nix/issues/6918
sh("git ls-files '*.nix' | xargs nixfmt --check")
end

task :tag do
sh(%q!ruby -r './lib/ulid/version' -e 'puts "v#{ULID::VERSION}"' | xargs --no-run-if-empty --max-lines=1 git tag!) # rubocop:disable Line/InterpolationCheck
end

0 comments on commit b334071

Please sign in to comment.