Skip to content

Commit 4b866df

Browse files
committed
ci: periodically update browserslist
1 parent 8b47eea commit 4b866df

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/browserslist.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Update browserslist
2+
on:
3+
schedule:
4+
- cron: "15 14 * * 3"
5+
6+
permissions:
7+
contents: write
8+
9+
jobs:
10+
update:
11+
runs-on: ubuntu-latest
12+
permissions:
13+
contents: write
14+
steps:
15+
- uses: actions/checkout@v3
16+
- uses: actions/setup-node@v3
17+
with:
18+
node-version: latest
19+
cache: 'npm'
20+
- name: Update browsers list
21+
run: npx --yes browserslist --update-db
22+
- name: Save updated db
23+
run: |
24+
git config user.name github-actions
25+
git config user.email [email protected]
26+
git add package-lock.json
27+
git commit -m "chore: bump browserslist"
28+
git push origin HEAD:main

0 commit comments

Comments
 (0)