diff --git a/.github/scripts/create-platform-release-pr.sh b/.github/scripts/create-platform-release-pr.sh index 1a26b266..813715c7 100755 --- a/.github/scripts/create-platform-release-pr.sh +++ b/.github/scripts/create-platform-release-pr.sh @@ -296,8 +296,13 @@ create_changelog_pr() { checkout_or_create_branch "${changelog_branch_name}" # Generate Changelog and Test Plan - echo "Generating changelog via auto-changelog.." - yarn auto-changelog update --rc --repo "${GITHUB_REPOSITORY_URL}" --currentVersion "${new_version}" --autoCategorize --useChangelogEntry --useShortPrLink + if [ "$platform" = "extension" ]; then + echo "Generating changelog for extension via yarn auto-changelog.." + yarn auto-changelog update --rc --repo "${GITHUB_REPOSITORY_URL}" --currentVersion "${new_version}" --autoCategorize --useChangelogEntry --useShortPrLink + else + echo "Generating changelog for mobile via npx @metamask/auto-changelog@4.1.0.." + npx @metamask/auto-changelog@4.1.0 update --rc --repo "${GITHUB_REPOSITORY_URL}" --currentVersion "${new_version}" --autoCategorize + fi # Skip commits.csv for hotfix releases (previous_version_ref is literal "null") # - When we create a new major/minor release, we fetch all commits included in the release, by fetching the diff between HEAD and previous version reference.