### Body

Same as https://github.com/apache/airflow/issues/33876 but for `publish-docs` command.

### Committer

- [X] I acknowledge that I am a maintainer/committer of the Apache Airflow project.
"""Check if package has been prepared in dist folder."""
    return any(
        file.startswith(
            (
                f'apache_airflow_providers_{package.replace(".", "_")}',
                f'apache-airflow-providers-{package.replace(".", "-")}',
            )
        )
        for file in dist_files
    )
def get_prs_for_package(package_id: str) -> list[int]:
    import yaml
    pr_matcher = re.compile(r".*\(#([0-9]*)\)``$")
    changelog_path = (
        AIRFLOW_SOURCES_ROOT / "airflow" / "providers" / package_id.replace(".", os.sep) / "CHANGELOG.rst"
    )
    
    provider_yaml_dict = yaml.safe_load(
        (
            AIRFLOW_SOURCES_ROOT
            / "airflow"
            / "providers"
            / package_id.replace(r".", os.sep)
            / "provider.yaml"
        ).read_text()