Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions .github/workflows/dependency-update.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Dependency Update

on:
schedule:
- cron: '0 3 * * 0' # Every Sunday at 3am UTC
workflow_dispatch:

jobs:
update-dependencies:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 20

- name: Install npm-check-updates
run: npm install -g npm-check-updates

- name: Run npm-check-updates and update package.json
run: |
ncu -u
npm install

- name: Create Pull Request for dependency updates
uses: peter-evans/create-pull-request@v5
with:
commit-message: 'chore(deps): update dependencies via ncu'
branch: 'chore/update-dependencies'
title: 'chore(deps): update dependencies via ncu'
body: 'Automated dependency update using npm-check-updates.'