strongbox icon indicating copy to clipboard operation
strongbox copied to clipboard

Tags for Releases

Open jherdman opened this issue 13 years ago • 2 comments

Tagging future releases means it's easy to discern the code as-at a version number. Knowing this makes it easier to track down bugs, or determine features available at a certain version.

jherdman avatar Oct 24 '12 19:10 jherdman

Got a link to some best practices?

spikex avatar Oct 25 '12 22:10 spikex

I don't know if anyone has this written down anywhere, but the basic procedure is like this:

  • Have a VERSION constant somewhere, and bump it's number according to Semver
  • Next, use Bundler's Gem tasks to first build, and then release your gem. Doing so will both tag and push your gem to Rubygems.org

The important thing to remember is that you shouldn't push a tag unless you really mean it. Git doesn't retag things behind the back of people who have cloned your repo, so just call your release something else and move on. For more information, see On Re-tagging.

jherdman avatar Oct 26 '12 13:10 jherdman