Skip to content

Commit

Permalink
chore(ci): add publint (#865)
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonkuhrt authored May 16, 2024
1 parent c119512 commit f1fd315
Show file tree
Hide file tree
Showing 3 changed files with 283 additions and 54 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,13 @@ jobs:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup
- run: pnpm check:lint
publint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup
- run: pnpm build
- run: pnpm check:publint
types:
runs-on: ubuntu-latest
steps:
Expand Down
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,11 @@
"dev": "rm -rf dist && tsc --watch",
"format": "pnpm build:docs && dprint fmt",
"lint": "eslint . --fix",
"check": "pnpm check:types && pnpm check:format && pnpm check:lint",
"check": "pnpm check:types && pnpm check:format && pnpm check:lint && pnpm check:publint",
"check:types": "pnpm tsc --noEmit",
"check:format": "dprint check && pnpm build:docs && git diff --exit-code README.md",
"check:lint": "eslint . --max-warnings 0",
"check:publint": "publint run --strict",
"prepublishOnly": "pnpm build",
"build:docs": "doctoc README.md --notitle && dprint fmt README.md",
"build": "pnpm clean && pnpm tsc --project tsconfig.build.json && chmod +x ./build/cli/generate.js",
Expand All @@ -90,6 +91,7 @@
"graphql": "14 - 16"
},
"devDependencies": {
"@arethetypeswrong/cli": "^0.15.3",
"@pothos/core": "^3.41.1",
"@pothos/plugin-simple-objects": "^3.7.0",
"@tsconfig/node18": "^18.2.4",
Expand Down Expand Up @@ -119,6 +121,7 @@
"graphql-tag": "^2.12.6",
"jsdom": "^24.0.0",
"json-bigint": "^1.0.0",
"publint": "^0.2.7",
"tsx": "^4.7.3",
"type-fest": "^4.18.0",
"typescript": "^5.4.5",
Expand Down
Loading

0 comments on commit f1fd315

Please sign in to comment.