New NPM Update Bot 🤖 (#25)
This commit is contained in:
parent
e2e6b55c3b
commit
a7dca88ebb
|
@ -1,11 +0,0 @@
|
||||||
version: 2
|
|
||||||
updates:
|
|
||||||
- package-ecosystem: "npm"
|
|
||||||
directory: "/"
|
|
||||||
schedule:
|
|
||||||
interval: "daily"
|
|
||||||
|
|
||||||
- package-ecosystem: "npm"
|
|
||||||
directory: "/src"
|
|
||||||
schedule:
|
|
||||||
interval: "daily"
|
|
|
@ -0,0 +1,30 @@
|
||||||
|
name: NPM Update Bot 🤖
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ "main" ]
|
||||||
|
schedule:
|
||||||
|
- cron: "0 0 * * *"
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
nub:
|
||||||
|
name: NPM Update Bot 🤖
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@main
|
||||||
|
- uses: actions/setup-node@main
|
||||||
|
with:
|
||||||
|
node-version: 'lts/*'
|
||||||
|
|
||||||
|
- name: Bot 🤖 "Updating NPM Packages..."
|
||||||
|
run: |
|
||||||
|
npm config set fund false
|
||||||
|
npm install -g npm-check-updates
|
||||||
|
npm update
|
||||||
|
cd src
|
||||||
|
npm update
|
||||||
|
git config --global user.name 'NPM Update Bot'
|
||||||
|
git config --global user.email 'nub@users.noreply.github.com'
|
||||||
|
git add .
|
||||||
|
git commit -am "npm: package updates" || true
|
||||||
|
git push || true
|
Loading…
Reference in New Issue