File tree Expand file tree Collapse file tree 1 file changed +41
-0
lines changed Expand file tree Collapse file tree 1 file changed +41
-0
lines changed Original file line number Diff line number Diff line change
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
You can’t perform that action at this time.
0 commit comments