make sure publish runs before uploading anything