Adds pre-publish commands