When upgrading @mdn/browser-compat-data, it'd be nice if Dependabot PRs automatically refreshed the dist files. Then it'd be easier to review the effects of the upgrade.
Here's one possible approach for this. When Dependabot upgrades BCD (as in #894), a GitHub Actions workflow ought to to do something like this:
- If the PR branch matches the pattern
dependabot/npm_and_yarn/mdn/browser-compat-data-, run npm run dist:refresh. The command must do what npm run dist does for every file with an existing .dist.yml file.
- Commit and changes to
.dist.yml files that result.
- Push the changes back to the Dependabot PR branch.
dist.ts probably needs an option flag to just automatically find the applicable files, for this to work.
When upgrading @mdn/browser-compat-data, it'd be nice if Dependabot PRs automatically refreshed the dist files. Then it'd be easier to review the effects of the upgrade.
Here's one possible approach for this. When Dependabot upgrades BCD (as in #894), a GitHub Actions workflow ought to to do something like this:
dependabot/npm_and_yarn/mdn/browser-compat-data-, runnpm run dist:refresh. The command must do whatnpm run distdoes for every file with an existing.dist.ymlfile..dist.ymlfiles that result.dist.tsprobably needs an option flag to just automatically find the applicable files, for this to work.