Skip to content

Monthly browserlist check #19

Monthly browserlist check

Monthly browserlist check #19

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/add-and-commit@v7.0.0
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";