Skip to content

Update Browserslist database #5

Update Browserslist database

Update Browserslist database #5

name: Update Browserslist database
on:
schedule:
- cron: '0 12 * * MON'
workflow_dispatch:
permissions:
contents: write
pull-requests: write
jobs:
update-browserslist-database:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Configure git
run: |
git config --global user.email "[email protected]"
git config --global user.name "Browserslist Update Action"
- name: Install pnpm
uses: pnpm/action-setup@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 18.12.1
- name: Update Browserslist database and create PR if applies
uses: c2corg/browserslist-update-action@v2
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
commit_message: 'build: update Browserslist db'
title: 'build: update Browserslist db'
labels: 'dependencies, automerge'