forked from mirrors/amnezia-wg-easy
New NPM Update Bot 🤖 (#25)
This commit is contained in:
parent
d0e0f5be3d
commit
1d6d253067
2 changed files with 30 additions and 11 deletions
30
.github/workflows/npm-update-bot.yml
vendored
Normal file
30
.github/workflows/npm-update-bot.yml
vendored
Normal file
|
@ -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…
Add table
Add a link
Reference in a new issue