Skip to content

Upgrade dependencies #140

Upgrade dependencies

Upgrade dependencies #140

name: Upgrade dependencies
on:
schedule:
- cron: '0 7 * * 1'
workflow_dispatch:
jobs:
upgradeDependencies:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: 'Use Node.js'
uses: actions/setup-node@v1
with:
node-version: 18
- name: 'Prepare git'
run: |
git config --global user.email "[email protected]"
git config --global user.name "github version update"
git branch -u origin/master master
- name: 'Upgrade dependencies'
run: |
yarn upgrade --latest
yarn add eslint 8.57.0
- name: 'Check code style'
run: yarn lint:fix
- name: 'Run unit tests'
run: yarn test
- name: 'Build project'
run: yarn build
- name: 'Push to git'
run: |
git add .
git commit -m "chore(node): upgrade dependencies"
git push