Update Dependencies #14
This file contains hidden or 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: | |
| # Run weekly on Sundays at 2 AM UTC | |
| - cron: '0 2 * * 0' | |
| workflow_dispatch: | |
| jobs: | |
| update-dependencies: | |
| name: Update Dependencies | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20.x' | |
| cache: 'npm' | |
| - name: Update dependencies | |
| run: | | |
| npm update | |
| npm audit fix --force | |
| - name: Run tests | |
| run: npm run test:all | |
| - name: Create Pull Request | |
| uses: peter-evans/create-pull-request@v5 | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| commit-message: 'chore: update dependencies' | |
| title: 'chore: automated dependency updates' | |
| body: | | |
| ## Automated Dependency Updates | |
| This PR contains automated dependency updates: | |
| - Updated npm packages to latest compatible versions | |
| - Applied security fixes via `npm audit fix` | |
| - All tests passing ✅ | |
| Please review the changes before merging. | |
| branch: chore/dependency-updates | |
| delete-branch: true |