Update dev dependencies #338
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 dev dependencies | |
permissions: write-all | |
on: | |
schedule: | |
- cron: "0 18 * * *" | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Update dev dependencies | |
run: npx npm-check-updates -u '/devDependencies/' | |
- name: Install dev dependencies | |
run: npm install --only=dev | |
- name: Run tests | |
run: npm test | |
- name: Commit changes | |
run: | | |
git config --global user.name "Kristjan ESPERANTO" | |
git config --global user.email '[email protected]' | |
git add -A | |
git diff-index --quiet HEAD || git commit -m "Automated dependency update" | |
git push |