Update Dependencies #232
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
name: Update Dependencies | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 8 * * MON' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
- uses: actions/[email protected] | |
with: | |
node-version: 19.x | |
# Run `yarn upgrade` | |
- uses: browniebroke/[email protected] | |
- name: update package.json | |
run: | | |
npx package-json-dependency-updater -u | |
- name: Install | |
run: | | |
yarn | |
- name: Fix lint | |
run: | | |
yarn run format | |
# Open a pull request if there are any changes | |
- name: Create Pull Request | |
uses: peter-evans/[email protected] | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
branch: update/yarn-upgrade | |
title: 'chore(deps): Upgrade dependencies' | |
commit-message: 'chore(deps): Run yarn upgrade' |