Skip to content

Commit 25c2183

Browse files
committed
ci: fix prettier check job
Use prettier version specified in `package.json` instead of fixed versions from third-party workflows.
1 parent 8f00c2e commit 25c2183

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

.github/workflows/build.yaml

+12-4
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,25 @@ concurrency:
2323

2424
jobs:
2525
prettier:
26-
name: Format with Prettier
26+
name: Run prettier check
2727
runs-on: ubuntu-22.04
2828
timeout-minutes: 5
2929
steps:
3030
- name: Checkout repo
3131
uses: actions/checkout@v4
3232

33-
- name: Run prettier with actionsx/prettier
34-
uses: actionsx/prettier@v3
33+
- name: Install Node.js
34+
uses: actions/setup-node@v4
3535
with:
36-
args: --check --log-level=warn .
36+
node-version-file: .node-version
37+
cache: npm
38+
cache-dependency-path: |
39+
package-lock.json
40+
test/package-lock.json
41+
42+
- run: SKIP_SUBMODULE_DEPS=1 npm ci
43+
44+
- run: npx prettier --check .
3745

3846
doctoc:
3947
name: Doctoc markdown files

0 commit comments

Comments
 (0)