diff --git a/.github/dependabot.yml b/.github/dependabot.yml deleted file mode 100644 index c9d2021..0000000 --- a/.github/dependabot.yml +++ /dev/null @@ -1,9 +0,0 @@ -# Please see the documentation for all configuration options: -# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file - -version: 2 -updates: - - package-ecosystem: "npm" - directory: "/" - schedule: - interval: "daily" diff --git a/.github/workflows/update-dependencies.yml b/.github/workflows/update-dependencies.yml new file mode 100644 index 0000000..a5cfbf4 --- /dev/null +++ b/.github/workflows/update-dependencies.yml @@ -0,0 +1,27 @@ +name: Update dependencies + +on: + workflow_dispatch: + schedule: + - cron: "0 18 * * *" + +jobs: + update-deps: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v5 + - uses: pnpm/action-setup@v3 + with: + version: 10.16.0 + - uses: actions/setup-node@v5 + with: + node-version: 22 + - run: pnpm install + - run: pnpm up --latest + - name: Commit changes + run: | + git config user.name "github-actions[bot]" + git config user.email "github-actions[bot]@users.noreply.github.com" + git add package.json pnpm-lock.yaml + git commit -m "chore: update dependencies" || echo "No changes to commit" + git push