Skip to content

Commit

Permalink
ci: fix prettier check job
Browse files Browse the repository at this point in the history
Use prettier version specified in `package.json` instead of fixed versions from third-party workflows.
  • Loading branch information
qupig committed Dec 12, 2024
1 parent 8f00c2e commit 25c2183
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,25 @@ concurrency:

jobs:
prettier:
name: Format with Prettier
name: Run prettier check
runs-on: ubuntu-22.04
timeout-minutes: 5
steps:
- name: Checkout repo
uses: actions/checkout@v4

- name: Run prettier with actionsx/prettier
uses: actionsx/prettier@v3
- name: Install Node.js
uses: actions/setup-node@v4
with:
args: --check --log-level=warn .
node-version-file: .node-version
cache: npm
cache-dependency-path: |
package-lock.json
test/package-lock.json
- run: SKIP_SUBMODULE_DEPS=1 npm ci

- run: npx prettier --check .

doctoc:
name: Doctoc markdown files
Expand Down

0 comments on commit 25c2183

Please sign in to comment.