chore: partial revert of 11f35eed37c437fc32ecc692acbb84e620e6cd4a #29
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Update Browserslist database | |
on: [push] | |
permissions: | |
contents: write | |
pull-requests: write | |
jobs: | |
build: | |
runs-on: ubuntu-24.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Configure git | |
run: | | |
# Setup for commiting using built-in token. See https://github.com/actions/checkout#push-a-commit-using-the-built-in-token | |
git config user.name "github-actions[bot]" | |
git config user.email "41898282+github-actions[bot]@users.noreply.github.com" | |
- name: "Install Node 22 and cache NPM packages" | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '22' | |
cache: 'npm' | |
- run: npm install | |
- name: Update Browserslist database and create PR if applies | |
uses: c2corg/[email protected] | |
with: | |
github_token: ${{ github.token }} | |
commit_message: 'chore: update Browserslist db' | |
title: 'Update Browserslist database' | |
body: 'Auto-generated by `.github/workflows/browserslist.yml` using c2corg/browserslist-update-action' | |
labels: 'dependencies,fast tracked,process,size/XS' | |
reviewers: 'doamatto' |