Skip to content

fix(ci): fix crates.io publish + add verification#1126

Merged
chaliy merged 1 commit intomainfrom
claude/investigate-bashkit-version-Kc49q
Apr 6, 2026
Merged

fix(ci): fix crates.io publish + add verification#1126
chaliy merged 1 commit intomainfrom
claude/investigate-bashkit-version-Kc49q

Conversation

@chaliy
Copy link
Copy Markdown
Contributor

@chaliy chaliy commented Apr 6, 2026

Summary

  • Fix bashkit core publish: Strip python feature from bashkit-cli before publishing bashkit core (cargo resolves whole workspace)
  • Remove silent error swallowing: cargo publish failures were hidden by || echo "::warning::" — bashkit core 0.1.16 silently failed to publish to crates.io
  • Add publish verification: New verify-publish job in publish.yml checks crates.io, npm verification step in publish-js.yml
  • Update release spec: Add post-release verification section with manual check commands

Context

v0.1.16 published to npm and PyPI but not to crates.io. The cargo publish -p bashkit step failed because cargo resolves the whole workspace, and bashkit-cli still referenced bashkit with features = ["python"] (which was stripped). The error was swallowed by || echo "::warning::".

Test plan

  • CI green
  • After merge, manually re-trigger publish.yml to publish bashkit 0.1.16 to crates.io
  • Verify crates.io shows bashkit 0.1.16

… crate

cargo publish resolves the whole workspace, so bashkit-cli's dependency
on bashkit with features=["python"] must be stripped before publishing
bashkit core (not just in the bashkit-cli job).

Also:
- Remove silent error swallowing (|| echo warning) from bashkit publish
- Add verify-publish job to publish.yml that checks crates.io versions
- Add npm publish verification step to publish-js.yml
- Update release spec with post-release verification commands
@chaliy chaliy merged commit fee2378 into main Apr 6, 2026
11 checks passed
@chaliy chaliy deleted the claude/investigate-bashkit-version-Kc49q branch April 6, 2026 19:48
chaliy added a commit that referenced this pull request Apr 6, 2026
#1127)

## Summary

Strip python feature from **all** workspace crates (bashkit-js,
bashkit-python) before publishing bashkit core. Previous fix only
covered bashkit-cli but cargo resolves the whole workspace.

## Context

Follow-up to #1126. Re-triggering `publish.yml` still failed because
`bashkit-js` and `bashkit-python` also depend on `bashkit` with
`features = ["python"]`.

## Test plan

- [ ] CI green
- [ ] Re-trigger `publish.yml` from main after merge
- [ ] `cargo search bashkit` shows 0.1.16
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