Change publish script to terminate if a publish step fails