Skip to content

Commit 57e7c9b

Browse files
authored
refactor: update browserslist database (#3067)
1 parent b70b292 commit 57e7c9b

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Update Browserslist database
2+
3+
on:
4+
schedule:
5+
- cron: '0 0 * * 1' # Every Monday at 00:00 UTC
6+
workflow_dispatch:
7+
8+
jobs:
9+
update-browserslist:
10+
runs-on: ubuntu-24.04 # Use Ubuntu 24.04 explicitly
11+
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@v4
15+
with:
16+
persist-credentials: false
17+
fetch-depth: 0 # Needed to create branches
18+
19+
- name: Setup Node.js
20+
uses: actions/setup-node@v4
21+
with:
22+
node-version-file: ".nvmrc"
23+
24+
- name: Install dependencies
25+
run: npm ci
26+
27+
- name: Update Browserslist database
28+
run: npx update-browserslist-db@latest
29+
30+
- name: Create Pull Request
31+
uses: peter-evans/create-pull-request@v6
32+
with:
33+
token: ${{ secrets.GITHUB_TOKEN }}
34+
commit-message: "chore: update Browserslist database"
35+
title: "chore: update Browserslist database"
36+
body: |
37+
This PR updates the Browserslist database (`caniuse-lite`) to ensure up-to-date browser support data.
38+
Auto-generated by GitHub Actions.
39+
branch: chore/update-browserslist-database
40+
add-paths: |
41+
package-lock.json

0 commit comments

Comments
 (0)