Skip to content

Commit

Permalink
ci: decouple publint check
Browse files Browse the repository at this point in the history
Signed-off-by: Andres Correa Casablanca <andreu@kindspells.dev>
  • Loading branch information
castarco committed Aug 4, 2024
1 parent 8e59692 commit 9fa4f5c
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,4 +73,6 @@ jobs:
- name: Run Linter
run: pnpm turbo lint
- name: Run Tests
run: pnpm turbo test
run: pnpm turbo test:cov
- name: Check Package
run: pnpm turbo lint:publint
2 changes: 1 addition & 1 deletion @kindspells/ts-crypto/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"build": "rm -rf dist/* && rollup --config rollup.config.mjs",
"format": "pnpm biome check --write --files-ignore-unknown=true .",
"format-staged": "biome-check-staged",
"lint": "pnpm lint:biome && pnpm lint:publint",
"lint": "pnpm lint:biome",
"lint:biome": "pnpm biome check --files-ignore-unknown=true .",
"lint:publint": "publint",
"prepublishOnly": "pnpm lint && pnpm build",
Expand Down
9 changes: 9 additions & 0 deletions turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,19 @@
"./**/*.d.cts"
]
},
"lint:publint": {
"dependsOn": ["build", "^lint:publint"],
"inputs": ["./package.json", "./dist/**/*"]
},
"test": {
"dependsOn": ["^test"],
"inputs": ["./package.json", "./src/**/*"]
},
"test:cov": {
"dependsOn": ["^test:cov"],
"inputs": ["./package.json", "./src/**/*"],
"outputs": ["./coverage/**/*"]
},
"typecheck": {
"dependsOn": ["^typecheck"],
"inputs": ["./src/**/*", "./tsconfig.json", "./.tsbuildinfo"],
Expand Down

0 comments on commit 9fa4f5c

Please sign in to comment.