update m-scm-publish-p to improve experience when publishing