incrementVersion

Increments the version according to the enum value. If it is UpdateType.NONE, the version is returned unchanged. If it is UpdateType.PATCH, the version is incremented as a patch. If it is UpdateType.MINOR, the version is incremented as a minor. If it is UpdateType.MAJOR, the version is incremented as a major.

Parameters

version

the last tagged version