We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 743ef46 commit 72dfe34Copy full SHA for 72dfe34
1 file changed
.github/workflows/lint.yml
@@ -9,8 +9,25 @@ jobs:
9
lint:
10
runs-on: ubuntu-latest
11
steps:
12
- - uses: actions/checkout@v3
13
- - name: Prettify code
14
- uses: creyD/prettier_action@v4.2
+ - name: Checkout
+ uses: actions/checkout@v3
+
15
+ - name: Setup Node
16
+ uses: actions/setup-node@v4
17
with:
- 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
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
0 commit comments