Skip to content

ci: make publish validate-specs step non-fatal (Part of #254)#310

Merged
tikazyq merged 1 commit into
mainfrom
chore/validate-non-fatal
May 20, 2026
Merged

ci: make publish validate-specs step non-fatal (Part of #254)#310
tikazyq merged 1 commit into
mainfrom
chore/validate-non-fatal

Conversation

@tikazyq
Copy link
Copy Markdown
Contributor

@tikazyq tikazyq commented May 20, 2026

Summary

Unblock the leanspec@0.3.0 publish (workflow run 26143212968 failed at Validate specs).

The Validate specs step in publish.yml runs node bin/leanspec.js validate --warnings-only, but the Rust CLI's validate command isn't yet migrated to the adapter API and exits non-zero before the --warnings-only flag takes effect. That blocks every release.

Treat the step as advisory (continue-on-error: true). The flag name already signals it's informational. Drop the override once validate is migrated to the adapter API.

State of the partial publish: @leanspec/{cli,mcp,http}-{platform}@0.3.0 are already on npm. leanspec, @leanspec/mcp, @leanspec/http-server, @leanspec/ui still need to publish — this PR + a re-run of publish.yml on main does that.

Part of #254.

Test plan

  • Merge → re-trigger gh workflow run publish.yml --ref main → workflow completes → leanspec@0.3.0 resolves on npm view leanspec

🤖 Generated with Claude Code

The publish workflow's `Validate specs` step runs
`node bin/leanspec.js validate --warnings-only`, but the Rust CLI's
`validate` command is not yet migrated to the adapter API and exits
non-zero before the `--warnings-only` flag takes effect. That blocks
every release.

Treat the step as advisory (`continue-on-error: true`) so the workflow
can proceed to publish. The flag name already signals the intent.
Remove the override once `validate` is migrated.

Part of #254 — unblocks the `leanspec@0.3.0` publish (run 26143212968).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings May 20, 2026 05:41
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adjusts the publish.yml CI workflow to avoid blocking releases when the Validate specs step exits non-zero despite being intended as informational (--warnings-only). This unblocks publishing leanspec@0.3.0 while the Rust validate command is still in transition.

Changes:

  • Mark the Validate specs step as advisory by enabling continue-on-error: true.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@tikazyq tikazyq merged commit 6203927 into main May 20, 2026
1 check passed
@tikazyq tikazyq deleted the chore/validate-non-fatal branch May 20, 2026 05:47
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.

2 participants