-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy path99-update-browserslist-database.yml
More file actions
43 lines (36 loc) · 1.23 KB
/
99-update-browserslist-database.yml
File metadata and controls
43 lines (36 loc) · 1.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Update Browserslist database
on:
schedule:
- cron: '0 0 * * 1' # Every Monday at 00:00 UTC
workflow_dispatch:
jobs:
update-browserslist:
runs-on: ubuntu-24.04 # Use Ubuntu 24.04 explicitly
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
persist-credentials: false
fetch-depth: 0 # Needed to create branches
- name: Setup Node.js
uses: actions/setup-node@v5
with:
node-version-file: '.nvmrc'
- name: Install dependencies
run: npm ci
- name: Update Browserslist database
run: npx update-browserslist-db@latest
- name: Create Pull Request
uses: peter-evans/create-pull-request@v7
env:
HUSKY: 0 # Disable Husky hooks in CI
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: 'chore: update Browserslist database'
title: 'chore: update Browserslist database'
body: |
This PR updates the Browserslist database (`caniuse-lite`) to ensure up-to-date browser support data.
Auto-generated by GitHub Actions.
branch: chore-update-browserslist-database
add-paths: |
package-lock.json