-
-
Notifications
You must be signed in to change notification settings - Fork 15
40 lines (32 loc) · 1.08 KB
/
browserlist_update.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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";