Skip to content

Commit

Permalink
feat: run Prettier on merge to main
Browse files Browse the repository at this point in the history
  • Loading branch information
maneike committed Oct 10, 2024
1 parent e8df28e commit 22050fe
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/prettier.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Prettier Check on Merge

on:
pull_request:
push:
branches:
- main

jobs:
prettier:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v3
with:
# Make sure the actual branch is checked out when running on pull requests
ref: ${{ github.head_ref }}

- name: Prettify code
uses: creyD/[email protected]
with:
# Specify which files or directories to format
prettier_options: --write './packages/core/**/*' './packages/cli/**/*'

# Optionally set the working directory if needed
# working_directory: ./ # Uncomment and adjust if your setup requires a specific directory

0 comments on commit 22050fe

Please sign in to comment.