summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md4
-rw-r--r--Rakefile16
2 files changed, 17 insertions, 3 deletions
diff --git a/README.md b/README.md
index 7995cc50ad..c36ef8dc72 100644
--- a/README.md
+++ b/README.md
@@ -164,9 +164,7 @@ Whenever a change is checked in to `master`, the patch version of `chef` is bump
After each "official" stable release we need to bump the minor version. To do this:
-1. Manually increment the minor version in the VERSION file that is in the root of this repo. and reset the patch version to 0. Assuming the current version is `12.10.57` you would edit `VERSION` to be `12.11.0`.
-2. Run `bundle exec rake version` which will copy the version to the respective `version.rb` files in chef and chef-config.
-3. Run `bundle exec rake bundle:install` to update the base Gemfile.lock
+1. Run `bundle exec rake version:bump_minor`
Submit a PR with the changes made by the above.
diff --git a/Rakefile b/Rakefile
index 98216cf5fd..5a6b224128 100644
--- a/Rakefile
+++ b/Rakefile
@@ -37,6 +37,22 @@ end
task "version:bump" => %w{version:bump_patch version:update}
task "version:bump" => %w{version:bump_patch version:update}
+task "version:bump_minor" do
+ Rake::Task["changelog:archive"].invoke
+ maj, min, _build = Chef::VERSION.split(".")
+ File.open("VERSION", "w+") { |f| f.write("#{maj}.#{min.to_i + 1}.0") }
+ Rake::Task["version"].invoke
+ Rake::Task["bundle:install"].invoke
+end
+
+task "version:bump_major" do
+ Rake::Task["changelog:archive"].invoke
+ maj, _min, _build = Chef::VERSION.split(".")
+ File.open("VERSION", "w+") { |f| f.write("#{maj.to_i + 1}.0.0") }
+ Rake::Task["version"].invoke
+ Rake::Task["bundle:install"].invoke
+end
+
task :pedant, :chef_zero_spec
task :build_eventlog do