Skip to content

Commit 2b4969f

Browse files
committed
feat: add publint
1 parent c7dae68 commit 2b4969f

File tree

3 files changed

+76
-2
lines changed

3 files changed

+76
-2
lines changed

.github/workflows/pr.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,12 @@ jobs:
1818
- uses: actions/checkout@v4
1919
- uses: ./.github/actions/setup
2020
- run: pnpm check:lint
21+
publint:
22+
runs-on: ubuntu-latest
23+
steps:
24+
- uses: actions/checkout@v4
25+
- uses: ./.github/actions/setup
26+
- run: pnpm check:publint
2127
types:
2228
runs-on: ubuntu-latest
2329
steps:

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,11 @@
3838
"clean": "tsc --build --clean && rm -rf build",
3939
"test": "vitest",
4040
"prepack": "pnpm build",
41-
"check": "pnpm check:format && pnpm check:lint && pnpm check:types",
41+
"check": "pnpm check:format && pnpm check:lint && pnpm check:types && pnpm check:publint",
4242
"check:format": "dprint check",
4343
"check:lint": "eslint . --max-warnings 0",
44-
"check:types": "tsc --noEmit"
44+
"check:types": "tsc --noEmit",
45+
"check:publint": "publint run --strict"
4546
},
4647
"devDependencies": {
4748
"@tsconfig/node18": "18.2.4",
@@ -64,6 +65,7 @@
6465
"fs-jetpack": "5.1.0",
6566
"inquirer": "9.2.19",
6667
"markdown-toc": "1.2.0",
68+
"publint": "^0.2.7",
6769
"tsx": "4.7.2",
6870
"typescript": "5.4.5",
6971
"vitest": "1.5.0"

pnpm-lock.yaml

Lines changed: 66 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)