Update NPM Dependencies #10
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 NPM Dependencies | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 0 * * 0' | |
jobs: | |
update-dependencies: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out the repository | |
uses: actions/checkout@v4 | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: latest | |
- name: Install npm-check-updates | |
run: npm install -g npm-check-updates | |
- name: Update dependencies | |
run: ncu -u | |
- name: Install updated dependencies | |
run: npm install | |
- name: Create Pull Request | |
uses: peter-evans/create-pull-request@v6 | |
with: | |
commit-message: Update dependencies | |
title: '[Automated] Update NPM dependencies' | |
body: 'This is an auto-generated PR with dependency updates.' | |
branch: 'update-dependencies-${{ github.run_number }}' | |
delete-branch: true |