mirror of
https://github.com/ivuorinen/base-configs-browserslist.git
synced 2026-02-15 14:48:18 +00:00
feat(ci): new release flow, linting
# Conflicts: # .github/workflows/pr-lint.yml # .github/workflows/stale.yml # .github/workflows/sync-labels.yml
This commit is contained in:
45
.github/workflows/update-browserslist.yaml
vendored
Normal file
45
.github/workflows/update-browserslist.yaml
vendored
Normal file
@@ -0,0 +1,45 @@
|
||||
---
|
||||
name: Update Browserslist database
|
||||
|
||||
on:
|
||||
schedule:
|
||||
# At 02:00 on day-of-month 1 and 15.
|
||||
- cron: '0 2 1,15 * *'
|
||||
workflow_dispatch:
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
pull-requests: write
|
||||
|
||||
jobs:
|
||||
update-browserslist-database:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Setup Node.js Environment
|
||||
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
|
||||
with:
|
||||
always-auth: true
|
||||
node-version-file: '.nvmrc'
|
||||
registry-url: 'https://registry.npmjs.org'
|
||||
scope: '@ivuorinen'
|
||||
|
||||
- name: Configure git
|
||||
run: |
|
||||
git config user.name "fiximus"
|
||||
git config user.email "189535814+fiximus@users.noreply.github.com"
|
||||
|
||||
- name: Update Browserslist database and create PR if applies
|
||||
uses: c2corg/browserslist-update-action@a76abb476199caea5399f9e28ff3f16e491ec566 # v2.5.0
|
||||
with:
|
||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
branch: ${{ vars.BROWSERSLIST_UPDATE_BRANCH || 'browserslist-update' }}
|
||||
base_branch: ${{ vars.DEFAULT_BRANCH || 'main' }}
|
||||
commit_message: 'chore(deps): update browserslist database'
|
||||
title: 'chore(deps): update browserslist database'
|
||||
body: Auto-generated by [browserslist-update-action](https://github.com/c2corg/browserslist-update-action/)
|
||||
labels: 'maintenance'
|
||||
Reference in New Issue
Block a user