We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0a52046 commit 99b712aCopy full SHA for 99b712a
2 files changed
.github/workflows/ci.yml
@@ -7,6 +7,27 @@ on:
7
pull_request:
8
9
jobs:
10
+ prettier:
11
+ name: Prettier
12
+ runs-on: ubuntu-latest
13
+ steps:
14
+ - name: Checkout Code
15
+ uses: actions/checkout@v4
16
+
17
+ - name: Setup Node.js
18
+ uses: actions/setup-node@v3
19
+ with:
20
+ node-version: latest
21
+ cache: npm
22
23
+ - name: Install Packages
24
+ run: npm ci
25
+ shell: bash
26
27
+ - name: Prettier
28
+ run: npm run format:check
29
30
31
build:
32
name: Build
33
runs-on: ubuntu-latest
package.json
@@ -9,7 +9,8 @@
"swizzle": "docusaurus swizzle",
"deploy": "docusaurus deploy",
"serve": "docusaurus serve",
- "format": "prettier --write ."
+ "format": "prettier --write .",
+ "format:check": "prettier --check ."
},
"dependencies": {
"@docusaurus/core": "^2.4.1",
0 commit comments