fix(deps): Update all (#625) #13
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 Lockfile | |
| on: | |
| push: | |
| branches: [main] | |
| paths: | |
| - "**/package.json" | |
| workflow_dispatch: | |
| permissions: | |
| id-token: write | |
| jobs: | |
| update-lockfile: | |
| name: Update Lockfile | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Get Token | |
| uses: octo-sts/action@f603d3be9d8dd9871a265776e625a27b00effe05 # v1.1.1 | |
| id: octo-sts | |
| with: | |
| scope: FriendsOfShopware/shopmon | |
| identity: update-lockfile | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| with: | |
| token: ${{ steps.octo-sts.outputs.token }} | |
| - name: Setup Bun | |
| uses: oven-sh/setup-bun@v2 | |
| with: | |
| bun-version: latest | |
| - name: Install Dependencies | |
| run: bun install | |
| - name: Check for changes | |
| id: changes | |
| run: | | |
| if git diff --quiet; then | |
| echo "has_changes=false" >> "$GITHUB_OUTPUT" | |
| else | |
| echo "has_changes=true" >> "$GITHUB_OUTPUT" | |
| fi | |
| - name: Commit and push | |
| if: steps.changes.outputs.has_changes == 'true' | |
| run: | | |
| git config user.name "github-actions[bot]" | |
| git config user.email "github-actions[bot]@users.noreply.github.com" | |
| git add bun.lock | |
| git commit -m "chore: update lockfile" | |
| git push |