diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 93497d5..71fbb3b 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -7,6 +7,7 @@ version: 2 updates: # Maintain dependencies for npm - package-ecosystem: "npm" # See documentation for possible values + versioning-strategy: increase directory: "/" # Location of package manifests schedule: interval: "weekly" diff --git a/.github/workflows/bun-dependabot.yml b/.github/workflows/bun-dependabot.yml new file mode 100644 index 0000000..203e3dd --- /dev/null +++ b/.github/workflows/bun-dependabot.yml @@ -0,0 +1,28 @@ +name: 'Dependabot: Update bun.lockb' + +on: + pull_request: + paths: + - "package.json" + +permissions: + contents: write + +jobs: + update-bun-lockb: + name: "Update bun.lockb" + if: github.actor == 'dependabot[bot]' + runs-on: ubuntu-latest + steps: + - uses: oven-sh/setup-bun@v1 + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + ref: ${{ github.event.pull_request.head.ref }} + - run: | + bun install + git add bun.lockb + git config --global user.name 'dependabot[bot]' + git config --global user.email 'dependabot[bot]@users.noreply.github.com' + git commit --amend --no-edit + git push --force