Skip to content

Commit 447f654

Browse files
Update prettier-check.yml
Signed-off-by: LUIZ HAMILTON ROBERTO DA SILVA <luizhamilton.lhr@gmail.com>
1 parent 1222831 commit 447f654

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

.github/workflows/prettier-check.yml

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@ name: Prettier Code Format Check
22

33
on:
44
push:
5-
branches:
6-
- main
7-
- develop
5+
branches: [main, develop]
86
paths:
97
- '**/*.js'
108
- '**/*.ts'
@@ -16,9 +14,7 @@ on:
1614
- '.prettierrc'
1715
- '.prettierignore'
1816
pull_request:
19-
branches:
20-
- main
21-
- develop
17+
branches: [main, develop]
2218
paths:
2319
- '**/*.js'
2420
- '**/*.ts'
@@ -44,15 +40,15 @@ jobs:
4440
uses: actions/setup-node@v4.0.3
4541
with:
4642
node-version: '20'
47-
cache: 'npm'
43+
cache: 'false' # no lock file, so disable caching
4844

49-
- name: 📦 Install Dependencies
50-
run: npm ci
45+
- name: 📦 Install Prettier
46+
run: npm install --global prettier
5147

5248
- name: 🔍 Run Prettier Check
5349
id: prettier
5450
run: |
55-
npx prettier --check . > prettier-report.txt || true
51+
prettier --check . > prettier-report.txt || true
5652
5753
- name: 📊 Upload Prettier Report
5854
if: failure()

0 commit comments

Comments
 (0)