Skip to content

Add doc lint workflow to gate releases#2

Merged
darylcecile merged 2 commits intomainfrom
add-doc-lint-workflow
Mar 24, 2026
Merged

Add doc lint workflow to gate releases#2
darylcecile merged 2 commits intomainfrom
add-doc-lint-workflow

Conversation

@darylcecile
Copy link
Copy Markdown
Owner

Documentation issues (spelling, broken links, staleness) can silently ship with releases since the existing CI only runs tests and type-checks. This adds doc linting as a CI gate so problems are caught before merge and before publish.

Approach

  • New doc-lint.yml workflow — runs bun run docs:lint (via gh-doccy) on pull requests targeting main, giving early feedback on doc quality.
  • doc-lint job in release.yml — runs in parallel with test after check-version, and is required by npm-publish. Broken docs now block the release.

Both use the existing gh-doccy setup (.doccyrc.yaml + docs:lint script) — no new dependencies.

darylcecile and others added 2 commits March 24, 2026 20:53
- Create .github/workflows/doc-lint.yml to lint docs on PRs to main
- Add doc-lint job to release.yml that must pass before npm publish
- Uses existing gh-doccy setup (docs:lint script + .doccyrc.yaml)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Matches the pattern from darylcecile/gh-doccy's own lint-docs workflow:
install the gh extension and run 'gh doccy lint' directly, no bun/npm needed.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@darylcecile darylcecile merged commit cba8589 into main Mar 24, 2026
2 checks passed
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