Skip to content

Commit

Permalink
Update prettier.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
reesaldle-dev authored Jan 21, 2025
1 parent 661616c commit adbced7
Showing 1 changed file with 11 additions and 13 deletions.
24 changes: 11 additions & 13 deletions .github/workflows/prettier.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,24 @@
name: Prettier Check
name: Prettier Code Formatter

on:
pull_request:
branches:
- main
push:
branches:
- main
pull_request:

jobs:
prettier-check:
prettier:
runs-on: ubuntu-latest

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

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '16'

- name: Install dependencies
run: npm install

- name: Run Prettier
run: npx prettier --check .
uses: creyD/prettier_action@v4.3
with:
prettier_directory: 'src'
prettier_options: '--write --check'
github_token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit adbced7

Please sign in to comment.