Only commit packages if also building the repository