Skip to content

Commit

Permalink
Enforce prettier for pull requests to main (#351)
Browse files Browse the repository at this point in the history
* Create prettier.yml

* Update prettier.yml

* Update prettier.yml

* Update prettier.yml

* Update prettier.yml

* Update prettier.yml

* Update prettier.yml

---------

Co-authored-by: Armin Talaie <[email protected]>
  • Loading branch information
armanmoztar and armintalaie authored Sep 2, 2024
1 parent b75b44b commit 40cd76e
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/prettier.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Lint

on:
pull_request:
push:
branches:
- main
jobs:
prettier:
name: Prettier
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Set up pnpm
uses: pnpm/[email protected]
with:
version: latest

- name: Install dependencies
run: pnpm install

- name: Run Prettier
run: pnpm exec prettier --check "**/*.{js,jsx,ts,tsx,json,css,md}"

0 comments on commit 40cd76e

Please sign in to comment.