Skip to content

fix(deps): update all non-major dependencies #154

fix(deps): update all non-major dependencies

fix(deps): update all non-major dependencies #154

Workflow file for this run

name: Auto-format
on:
pull_request:
branches: [main]
concurrency:
group: auto-format-${{ github.ref }}
cancel-in-progress: true
jobs:
auto-format:
runs-on: ubuntu-latest
# Only run on PRs from the same repository (not forks)
if: github.event.pull_request.head.repo.full_name == github.repository
permissions:
contents: write
steps:
- uses: actions/checkout@v6
with:
ref: ${{ github.head_ref }}
token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/setup-node@v6
with:
node-version-file: "package.json"
- uses: pnpm/action-setup@v4
- name: Get pnpm store directory
shell: bash
run: echo "STORE_PATH=$(pnpm store path --silent)" >> "$GITHUB_ENV"
- uses: actions/cache@v5
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Auto-format with Biome
run: pnpm check
- name: Commit formatting changes
run: |
git config --local user.name "github-actions[bot]"
git config --local user.email "github-actions[bot]@users.noreply.github.com"
if [[ -n $(git status --porcelain) ]]; then
git add -A
git commit -m "style: auto-format with Biome [skip ci]"
git push
echo "✓ Formatting changes committed and pushed"
else
echo "✓ No formatting changes needed"
fi