Rename `publish_tries` to `publish_retries` for consistency.