make sure publish script is smart about how to tag a beta release

review @sebv @0x1mason