From 215946e111b74f0a98a8042b79a9da0daba2f03c Mon Sep 17 00:00:00 2001 From: Rockwell Schrock Date: Mon, 8 Dec 2025 09:57:34 -0500 Subject: [PATCH] Add version argument to bin/release --- bin/release | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/release b/bin/release index 3473b11..a0cb6a6 100755 --- a/bin/release +++ b/bin/release @@ -9,13 +9,13 @@ if $?.exitstatus != 0 end major, minor, patch = TRMNL::Liquid::VERSION.split('.').map(&:to_i) -new_version = "#{major}.#{minor}.#{patch + 1}" +new_version = ARGV[0] || "#{major}.#{minor}.#{patch + 1}" puts "✅ Current version: #{TRMNL::Liquid::VERSION}" puts "✅ Next version: #{new_version}" -print "⚠️ This will bump the version, commit, tag, and push to GitHub. Continue? [yN] " -if gets.chomp.downcase != 'y' +print "⚠️ This will bump the version, commit, tag, push to GitHub, and release on RubyGems. Continue? [yN] " +if $stdin.gets.chomp.downcase != 'y' puts "❌ Aborting." exit 1 end