Skip to content

Monthly browserlist check #21

Monthly browserlist check

Monthly browserlist check #21

name: Monthly browserlist check
on:
schedule:
- cron: '0 13 1 * *'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: 14.18.2
- uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-14-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-14-
- name: Update browserlist command
run: npx browserslist@latest --update-db
- name: Commit to main
id: commit
uses: EndBug/[email protected]
with:
author_name: github-actions
author_email: 41898282+github-actions[bot]@users.noreply.github.com
message: '[skip ci] Update browserlist'
add: '*.json'
- name: Handle no changes
if: steps.commit.outputs. committed != 'true'
run: echo "No commit was required";