Skip to content

Commit 7aaace1

Browse files
authored
Merge pull request #28 from MarvNC/add-prettier-check
Add Workflow for `prettier --check .`
2 parents 63758a8 + dc61f27 commit 7aaace1

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

.github/workflows/prettier-check.yml

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Prettier Check
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
prettier-check:
7+
runs-on: ubuntu-latest
8+
9+
steps:
10+
- uses: actions/checkout@v4
11+
- uses: actions/setup-node@v4
12+
with:
13+
node-version: 20
14+
- run: npm ci
15+
- run: npm run check-format

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"main": "dist/index.js",
66
"scripts": {
77
"format": "npx prettier --write .",
8+
"check-format": "npx prettier --check .",
89
"build": "tsc",
910
"prepublish": "npm run build"
1011
},

0 commit comments

Comments
 (0)