Update Dependencies #6
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 Dependencies | |
on: | |
schedule: | |
- cron: '0 0 * * 1' # every Monday | |
workflow_dispatch: # Manuel trigger | |
jobs: | |
update-deps: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache: 'npm' | |
- name: Update dependencies | |
run: | | |
npm outdated | |
npm update | |
npm audit fix | |
- name: Create Pull Request | |
uses: peter-evans/create-pull-request@v5 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
commit-message: 'chore(deps): update dependencies' | |
title: '⬆️ Update dependencies' | |
body: | | |
Automated dependency updates. | |
- Dependency updates | |
- Security patches | |
- npm audit fixes | |
branch: dependency-updates | |
base: master |