Update Browserslist database #23
This file contains hidden or 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: | |
| 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@v5 | |
| with: | |
| persist-credentials: false | |
| fetch-depth: 0 # Needed to create branches | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| 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 |