Reintroduce missed pre-publish script