31 lines
724 B
YAML
31 lines
724 B
YAML
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/*'
|
|
check-latest: true
|
|
|
|
- name: Bot 🤖 "Updating NPM Packages..."
|
|
run: |
|
|
npm config set fund false
|
|
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
|