mirror of https://github.com/wg-easy/wg-easy
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
1.1 KiB
45 lines
1.1 KiB
name: NPM Update Bot 🤖
|
|
|
|
on:
|
|
push:
|
|
branches: ["master"]
|
|
schedule:
|
|
- cron: "0 0 * * 1"
|
|
|
|
jobs:
|
|
npmupbot:
|
|
name: NPM Update Bot 🤖
|
|
runs-on: ubuntu-latest
|
|
if: github.repository_owner == 'wg-easy'
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
with:
|
|
repository: wg-easy/wg-easy
|
|
ref: master
|
|
|
|
- uses: pnpm/action-setup@v4
|
|
name: Install pnpm
|
|
with:
|
|
run_install: false
|
|
|
|
- name: Setup Node
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: "lts/*"
|
|
check-latest: true
|
|
cache: "pnpm"
|
|
|
|
- name: Bot 🤖 "Updating NPM Packages..."
|
|
run: |
|
|
npm install -g --silent npm-check-updates
|
|
ncu -p pnpm -u
|
|
pnpm update
|
|
cd src
|
|
ncu -p pnpm -u
|
|
pnpm 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
|
|
|