We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 63758a8 + dc61f27 commit 7aaace1Copy full SHA for 7aaace1
.github/workflows/prettier-check.yml
@@ -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
@@ -5,6 +5,7 @@
"main": "dist/index.js",
"scripts": {
"format": "npx prettier --write .",
+ "check-format": "npx prettier --check .",
"build": "tsc",
"prepublish": "npm run build"
},
0 commit comments