-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: add action to update the browserslist database on a monthly basis
- Loading branch information
Showing
1 changed file
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: Update Browserslist Database | ||
|
||
on: | ||
# TODO: TESTING REMOVE THIS BEFORE MERGING | ||
push: | ||
branches: | ||
- browserlist-update-db-action | ||
schedule: | ||
# run on the 1st of every month | ||
- cron: '15 3 1 * *' | ||
workflow_call: | ||
|
||
jobs: | ||
|
||
- uses: actions/checkout@v4 | ||
- name: Update Browserlist Database | ||
run: | | ||
git config user.name github-actions | ||
git config user.email [email protected] | ||
npx update-browserslist-db@latest | ||
npm exec --prefix packages/react update-browserslist-db@latest | ||
npm exec --prefix packages/styles update-browserslist-db@latest | ||
git commit -m 'chore: update browserlist database' | ||
- name: Create Pull Request | ||
uses: peter-evans/create-pull-request@v6 |