Set version according to versioning scheme