build(deps-dev): bump the minor-and-patch group across 1 directory with 5 updates #8
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Update Lock File | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| paths: | |
| - package.json | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| jobs: | |
| update: | |
| runs-on: ubuntu-latest | |
| if: github.actor == 'dependabot[bot]' | |
| steps: | |
| - name: Checkout source code | |
| uses: actions/checkout@v6 | |
| with: | |
| ref: ${{ github.head_ref }} | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Set up Bun | |
| uses: oven-sh/setup-bun@v2 | |
| with: | |
| bun-version: latest | |
| - name: Regenerate lock file | |
| run: bun install --no-frozen-lockfile | |
| - name: Commit and push if changed | |
| run: | | |
| git config user.name "github-actions[bot]" | |
| git config user.email "41898282+github-actions[bot]@users.noreply.github.com" | |
| git add bun.lock | |
| if git diff --staged --quiet; then | |
| echo "No lockfile changes" | |
| else | |
| git commit -m "chore: regenerate bun.lock" | |
| git push | |
| fi |