Skip to content

Commit 60b22f9

Browse files
committed
feat: add dedicated prettier job
1 parent 909ea14 commit 60b22f9

2 files changed

Lines changed: 12 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,17 @@ jobs:
1717
- run: npm ci
1818
- run: npm run build
1919

20+
prettier:
21+
runs-on: ubuntu-latest
22+
steps:
23+
- uses: actions/checkout@v4
24+
- uses: actions/setup-node@v4
25+
with:
26+
node-version: 18
27+
cache: npm
28+
- run: npm ci
29+
- run: npm run prettier:check
30+
2031
lint:
2132
runs-on: ubuntu-latest
2233
steps:

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
"lint": "eslint .",
3737
"test": "NODE_ENV=test jest --coverage --detectOpenHandles",
3838
"prettier": "prettier --config .prettierrc --write .",
39+
"prettier:check": "prettier --config .prettierrc --check .",
3940
"test:watch": "jest --watch"
4041
},
4142
"peerDependencies": {

0 commit comments

Comments
 (0)