Skip to content

Commit

Permalink
Update bun-formatcheck.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
imrishabh18 authored Jan 25, 2025
1 parent 48fcff9 commit da2d7af
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/bun-formatcheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,15 @@ jobs:
run: echo "BIOME_VERSION=$(node -p "require('./package.json').devDependencies['@biomejs/biome']")" >> $GITHUB_OUTPUT

- name: Install @biomejs/biome
run: npm install @biomejs/biome@${{ steps.get-biome-version.outputs.BIOME_VERSION }}
run: bun add @biomejs/biome@${{ steps.get-biome-version.outputs.BIOME_VERSION }}

- name: Run Formatter and autofix
if: steps.check_fork.outputs.is_fork == 'false'
run: npx @biomejs/biome format . --write
run: bunx @biomejs/biome format . --write

- name: Format Check (cannot autofix against forks)
if: steps.check_fork.outputs.is_fork == 'true'
run: npx @biomejs/biome format .
run: bunx @biomejs/biome format .

- name: Restore lock files
if: steps.check_fork.outputs.is_fork == 'false'
Expand Down

0 comments on commit da2d7af

Please sign in to comment.