-
Notifications
You must be signed in to change notification settings - Fork 1
Description
We are moving towards a shared browserslist config (https://github.com/edx/browserslist-config) to use across our JS repositories to maintain consistency in browser support across applications while ensuring it is easy to maintain with future changes (i.e., change once, impacts all consumers).
However, the browserslist browsers database can get stale as new usage data and browser versions come out. As such, occasionally we see warnings like:
Browserslist: caniuse-lite is outdated. Please run next command npm update caniuse-lite browserslist
To fix this, running npx browserslist@latest --update-db updates the caniuse-lite version in package-lock.json files.
This issue is to find a way to automate this update process for our repositories that rely on browserslist, e.g., perhaps adding a Github action to each relevant repository that runs on a cron once a week (?) to do the following:
- Runs
npx browserslist@latest --update-dbto update the package-lock.json file to pull in updates. - Opens a PR with the resulting changes and auto-merges, or commits directly to default branch.
PRs
This is the pre-requisite:
These need to be updated after the above one gets merged:
- Automate Browserlist DB Update frontend-app-account#642
- Automate Browserlist DB Update openedx-unsupported/frontend-app-publisher#783
- Automate Browserlist DB Update frontend-app-gradebook#274
- Automate Browserlist DB Update frontend-app-admin-portal#869
- Automate Browserlist DB Update frontend-app-profile#615
- Automate Browserlist DB Update openedx-unsupported/frontend-app-ecommerce#221
- Automate Browserlist DB Update openedx-unsupported/frontend-app-payment#646
- Automate Browserlist DB Update frontend-app-learning#987
- Automate Browserlist DB Update openedx-unsupported/frontend-app-program-console#64
- Automate Browserlist DB Update frontend-app-authoring#357
- feat: auto update browserslist DB openedx-unsupported/frontend-app-library-authoring#73
- Automate Browserlist DB Update frontend-app-learner-record#100
- Automate Browserlist DB Update frontend-app-enterprise-public-catalog#261
- https://github.com/edx/frontend-app-communications/pull/92
- Automate Browserlist DB Update paragon#1664
- feat: Automate browserlist DB Update frontend-platform#381
- feat: Automate browserlist DB update frontend-template-application#484
Metadata
Metadata
Assignees
Labels
Type
Projects
Status