Add prePublish for building