-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: Configure pnpm/node before running browserslist update (#26703)
- Loading branch information
1 parent
cc990fd
commit 14ab46b
Showing
1 changed file
with
13 additions
and
6 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ name: Update Browserslist database | |
|
||
on: | ||
schedule: | ||
- cron: '0 0 5,15,25 * *' | ||
- cron: '0 12 * * MON' | ||
workflow_dispatch: | ||
|
||
permissions: | ||
|
@@ -17,17 +17,24 @@ jobs: | |
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Configure git | ||
run: | | ||
# Setup for committing using built-in token. See https://github.com/actions/checkout#push-a-commit-using-the-built-in-token | ||
git config user.name "github-actions[bot]" | ||
git config user.email "41898282+github-actions[bot]@users.noreply.github.com" | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "Browserslist Update Action" | ||
- name: Install pnpm | ||
uses: pnpm/action-setup@v4 | ||
|
||
- name: Set up Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 18.12.1 | ||
|
||
- name: Update Browserslist database and create PR if applies | ||
uses: c2corg/browserslist-update-action@v2 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
base_branch: master | ||
commit_message: 'build: update Browserslist db' | ||
title: 'build: update Browserslist db' | ||
body: 'Auto-generated by [browserslist-update-action](https://github.com/c2corg/browserslist-update-action/)' | ||
labels: 'dependencies, automerge' |