Publish scripts handling version change