amnezia-wg-easy/.github/workflows/npm-update-bot.yml

31 lines
738 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/*'
- 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