Skip to content

feat(ci): add conditional knip step to ci_npmjs#36

Merged
jr200 merged 1 commit into
masterfrom
feat/knip-step
Apr 21, 2026
Merged

feat(ci): add conditional knip step to ci_npmjs#36
jr200 merged 1 commit into
masterfrom
feat/knip-step

Conversation

@jr200

@jr200 jr200 commented Apr 21, 2026

Copy link
Copy Markdown
Collaborator

Summary

Adds a knip step to the unit job in ci_npmjs.yaml. Runs pnpm knip
if the caller's package.json declares a knip script; otherwise a
no-op. Same conditional pattern as lint/test/build/syncpack.

Caller opt-in is implicit — declare a knip script in package.json
and the step runs. No new workflow input needed.

Context: WG-34 (knip dead-code detection in whengas-ui). Landing this
here makes the same gate available to any TS repo on the shared workflow.

Test plan

  • YAML syntactically valid (no new inputs, no schema changes)
  • Downstream caller with a knip script runs pnpm knip
  • Downstream caller without a knip script logs skip and passes

Runs `pnpm knip` in the unit job if the caller's package.json declares
a `knip` script. No-op otherwise. Same opt-in pattern as lint/test/build.

Caller opt-in is implicit — just add knip as a script.
@jr200 jr200 merged commit b92cfbe into master Apr 21, 2026
2 checks passed
@jr200 jr200 deleted the feat/knip-step branch April 21, 2026 06:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant