From f89845aed6a4b1e8652e01ebb4ba1c9429b53537 Mon Sep 17 00:00:00 2001 From: Joshua Peek Date: Mon, 19 May 2014 10:02:13 -0400 Subject: [PATCH] Add maintaining guidelines --- MAINTAINING.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 MAINTAINING.md diff --git a/MAINTAINING.md b/MAINTAINING.md new file mode 100644 index 0000000..4ffc4e6 --- /dev/null +++ b/MAINTAINING.md @@ -0,0 +1,24 @@ +# Maintaining + +## Releasing a new version + +This project follows [semver](http://semver.org/). So if you are making a bug +fix, only increment the patch level "2.0.x". If any new files are added, a minor +version "2.x.x" bump is in order. + +### Make a release commit + +To prepare the release commit, edit the +[lib/execjs/version.rb](https://github.com/sstephenson/execjs/blob/master/lib/execjs/version.rb) +`VERSION` value. Then make a single commit with the description as +"ExecJS 2.x.x". Finally, tag the commit with `v2.x.x`. + +``` +$ git pull +$ vim ./lib/execjs/version.rb +$ git add ./lib/execjs/version.rb +$ git ci -m "ExecJS 2.x.x" +$ git tag v2.x.x +$ git push +$ git push --tags +```