moving versioning into publish script