Skip to content
This repository has been archived by the owner on Nov 18, 2024. It is now read-only.

Commit

Permalink
Update prettier check
Browse files Browse the repository at this point in the history
  • Loading branch information
Froxcey authored Aug 28, 2023
1 parent 7614863 commit e73c254
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/prettier.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,14 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Checkout
uses: actions/checkout@v3

- name: Run Prettier Check
uses: rutajdash/[email protected]
with:
file_pattern: '**/*.ts'
- name: Setup Node.js
uses: actions/setup-node@v3

- name: Install prettier
run: npm install --global prettier@latest

- name: Prettier check
run: prettier --check '**/*.ts' '**/*.json' --ignore-path .gitignore || (echo "Prettier check failed." && exit 1) && echo "Prettier check passed." && exit 0

0 comments on commit e73c254

Please sign in to comment.