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 --legacy-peer-deps cd src npm update --legacy-peer-deps 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