Upgrade dependencies #154
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: 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 |