improvement to publish script [skip ci]
improvement to publish script [skip ci]