Skip to content

Commit 72dfe34

Browse files
committed
update no Lint
1 parent 743ef46 commit 72dfe34

1 file changed

Lines changed: 21 additions & 4 deletions

File tree

.github/workflows/lint.yml

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,25 @@ jobs:
99
lint:
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/checkout@v3
13-
- name: Prettify code
14-
uses: creyD/prettier_action@v4.2
12+
- name: Checkout
13+
uses: actions/checkout@v3
14+
15+
- name: Setup Node
16+
uses: actions/setup-node@v4
1517
with:
16-
prettier_options: --check src
18+
node-version: '18'
19+
20+
- name: Install dependencies (if present)
21+
run: |
22+
if [ -f package-lock.json ] || [ -f package.json ]; then
23+
npm ci
24+
fi
25+
26+
- name: Prettier check
27+
run: |
28+
# Use project's installed prettier if available, otherwise use npx to run latest
29+
if [ -f node_modules/.bin/prettier ]; then
30+
npx prettier --check src
31+
else
32+
npx prettier@latest --check src
33+
fi

0 commit comments

Comments
 (0)