Skip to content

Upgrade all dependencies #717

Upgrade all dependencies

Upgrade all dependencies #717

name: Upgrade all dependencies
on:
schedule:
- cron: '0 0 * * *'
jobs:
upgrade:
if: github.repository == 'themetalfleece/nodejs-typescript-template'
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3
with:
ref: master
- name: Install yarn-upgrade-all
run: yarn global add yarn-upgrade-all
- name: Upgrade all dependencies
run: yarn-upgrade-all
- name: Verify changes
id: verify_changes
run: |
git clean -f -q -- yarn.lock
echo "::set-output name=changes::$(git status --porcelain)"
- name: Commit changes
if: steps.verify_changes.outputs.changes != ''
run: |
git add package.json
git config --global user.name 'Auto upgrade'
git config --global user.email '[email protected]'
git commit -am "Upgrade dependencies"
npm version minor
git push
git push --tags