Add variantToReleaseType
Fixes #38
Fix if clause
Merge pull request #40 from x2on/variantToReleaseType

Add variantToReleaseType