build(deps): bump eslint from 9.36.0 to 9.37.0 in the all group #7
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 Biome Schema | |
| on: | |
| pull_request: | |
| paths: | |
| - 'package.json' | |
| - 'pnpm-lock.yaml' | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| jobs: | |
| update-schema: | |
| name: Update Biome Schema | |
| runs-on: ubuntu-latest | |
| if: github.event.pull_request.user.login == 'dependabot[bot]' | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v5 | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| ref: ${{ github.head_ref }} | |
| - name: Setup pnpm | |
| uses: pnpm/action-setup@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v5 | |
| with: | |
| node-version: "24" | |
| cache: 'pnpm' | |
| - name: Install dependencies | |
| run: pnpm install | |
| - name: Get Biome version | |
| id: biome-version | |
| run: | | |
| BIOME_VERSION=$(pnpm list @biomejs/biome --json | jq -r '.[0].devDependencies."@biomejs/biome".version') | |
| echo "version=${BIOME_VERSION}" >> $GITHUB_OUTPUT | |
| - name: Update biome.json schema | |
| run: | | |
| BIOME_VERSION="${{ steps.biome-version.outputs.version }}" | |
| jq --arg schema "https://biomejs.dev/schemas/${BIOME_VERSION}/schema.json" '."$schema" = $schema' biome.json > biome.json.tmp | |
| mv biome.json.tmp biome.json | |
| - name: Check for changes | |
| id: check-changes | |
| run: | | |
| if git diff --quiet; then | |
| echo "changed=false" >> $GITHUB_OUTPUT | |
| else | |
| echo "changed=true" >> $GITHUB_OUTPUT | |
| fi | |
| - name: Commit changes | |
| if: steps.check-changes.outputs.changed == 'true' | |
| run: | | |
| git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com" | |
| git config --local user.name "github-actions[bot]" | |
| git add biome.json pnpm-lock.yaml | |
| git commit -m "chore: update biome.json schema to match installed version" | |
| git push |