Skip to content

Commit

Permalink
Add GitHub workflow to update npm packages and create PR
Browse files Browse the repository at this point in the history
  • Loading branch information
MXPOL committed Feb 4, 2025
1 parent 6d87782 commit ce88c06
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/update-npm-packages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Update npm Packages and Create PR

on:
schedule:
- cron: '0 0 * * *'
workflow_dispatch:

jobs:
update-dep:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: '20.x'
- name: Update dependencies
run: |
npx -p npm-check-updates ncu -u
npm install
- name: Create Pull Request
uses: peter-evans/create-pull-request@v7
with:
commit-message: Update dependencies
title: Update dependencies
body: |
- Dependency updates
branch: update-dependencies

0 comments on commit ce88c06

Please sign in to comment.