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

31 lines
734 B
YAML

name: NPM Update Bot 🤖
on:
push:
branches: [ "main" ]
schedule:
- cron: "0 0 * * *"
jobs:
npmupbot:
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 'npmupbot@users.noreply.github.com'
git add .
git commit -am "npm: package updates" || true
git push || true