patching up `pub publish`

@Scarygami can you take a quick review :+1: