Skip to content

Commit

Permalink
Run NPM updater on master, main, dev
Browse files Browse the repository at this point in the history
  • Loading branch information
Dartegnian committed Dec 23, 2023
1 parent 329b29b commit 2b62964
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/npm-update-bot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: NPM Update Bot 🤖

on:
push:
branches: [ "master", "main", "dev" ]
schedule:
- cron: "0 0 * * *"

jobs:
npmupbot:
name: NPM Update Bot 🤖
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: '18'
check-latest: true
cache: 'npm'
cache-dependency-path: |
package-lock.json
src/package-lock.json
- name: Bot 🤖 "Updating NPM Packages..."
run: |
npm install -g --silent npm-check-updates
ncu -u
npm update
cd src
ncu -u
npm update
git config --global user.name 'NPM Update Bot'
git config --global user.email '[email protected]'
git add .
git commit -am "npm: package updates" || true
git push || true

0 comments on commit 2b62964

Please sign in to comment.