From 4dc56a071850ea40073345014acda851bf8c20a8 Mon Sep 17 00:00:00 2001 From: "Philip H." <47042125+pheiduck@users.noreply.github.com> Date: Fri, 6 Sep 2024 16:26:27 +0200 Subject: [PATCH] CI: use dependabot instead of gh action (#1364) --- .github/dependabot.yml | 10 +++++++ .github/workflows/npm-update-bot.yml | 40 ---------------------------- 2 files changed, 10 insertions(+), 40 deletions(-) delete mode 100644 .github/workflows/npm-update-bot.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml index b6e48dc1..b88b5b32 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -5,3 +5,13 @@ updates: schedule: interval: "weekly" rebase-strategy: "auto" + - package-ecosystem: "npm" + directory: "/" + schedule: + interval: "weekly" + rebase-strategy: "auto" + - package-ecosystem: "npm" + directory: "/src/" + schedule: + interval: "weekly" + rebase-strategy: "auto" diff --git a/.github/workflows/npm-update-bot.yml b/.github/workflows/npm-update-bot.yml deleted file mode 100644 index b13de144..00000000 --- a/.github/workflows/npm-update-bot.yml +++ /dev/null @@ -1,40 +0,0 @@ -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 - - name: Setup Node - uses: actions/setup-node@v4 - with: - node-version: 'lts/*' - check-latest: true - cache: 'npm' - - - name: Bot 🤖 "Updating NPM Packages..." - run: | - npm install -g --silent npm-check-updates - ncu -u - npm update - cd src - ncu -u - npm update - npm run buildcss - 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