hullcss-discord-bot/.github/workflows/yarn-upgrader.yml

37 lines
848 B
YAML

name: Update dependencies
on:
workflow_dispatch:
schedule:
- cron: '0 */12 * * *'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3.3.0
- uses: actions/setup-node@v3.6.0
with:
node-version: 19.x
# Run `yarn upgrade`
- uses: browniebroke/yarn-upgrade-action@v1.1
- name: update package.json
run: |
npx package-json-dependency-updater -u
- name: Install
run: |
yarn
# Open a pull request if there are any changes
- name: Create Pull Request
uses: peter-evans/create-pull-request@v4.2.3
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: update/yarn-upgrade
title: 'chore(deps): Upgrade dependencies'
commit-message: 'chore(deps): Run yarn upgrade'