Calculates the version of a repo based on the package.json and the current SHA