Skip to content

Commit d759583

Browse files
authored
fix(ci): add deps-pypi to crates.io publish workflow (#26)
* fix(ci): use katyo/publish-crates for automatic workspace publishing - Replace manual publish steps with katyo/publish-crates@v2 - Automatic dependency ordering and registry availability checks - Add publish-delay: 10000ms between packages - Add publish = true to all crate manifests * chore: bump version to 0.2.3
1 parent f676925 commit d759583

File tree

8 files changed

+27
-33
lines changed

8 files changed

+27
-33
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -216,32 +216,12 @@ jobs:
216216
id: crates-io-auth
217217
uses: rust-lang/crates-io-auth-action@v1
218218

219-
- name: Publish deps-core to crates.io
220-
run: cargo publish --package deps-core --token ${{ steps.crates-io-auth.outputs.token }}
221-
continue-on-error: true
222-
223-
- name: Wait for crates.io propagation
224-
run: sleep 30
225-
226-
- name: Publish deps-cargo to crates.io
227-
run: cargo publish --package deps-cargo --token ${{ steps.crates-io-auth.outputs.token }}
228-
continue-on-error: true
229-
230-
- name: Wait for crates.io propagation
231-
run: sleep 30
232-
233-
- name: Publish deps-npm to crates.io
234-
run: cargo publish --package deps-npm --token ${{ steps.crates-io-auth.outputs.token }}
235-
continue-on-error: true
236-
237-
- name: Wait for crates.io propagation
238-
run: sleep 30
239-
240-
- name: Publish deps-lsp to crates.io
241-
run: cargo publish --package deps-lsp --token ${{ steps.crates-io-auth.outputs.token }}
242-
continue-on-error: true
243-
244-
# Note: deps-zed is now in a separate repository and published from there
219+
- name: Publish crates to crates.io
220+
uses: katyo/publish-crates@v2
221+
with:
222+
registry-token: ${{ steps.crates-io-auth.outputs.token }}
223+
ignore-unpublished-changes: true
224+
publish-delay: 10000
245225

246226
# Update release notes with installation instructions
247227
update-release-notes:

CHANGELOG.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
## [0.2.3] - 2025-12-23
11+
12+
### Changed
13+
- CI: Use `katyo/publish-crates` for automatic workspace publishing with dependency ordering
14+
15+
### Fixed
16+
- CI: Add missing `deps-pypi` to crates.io publish workflow
17+
1018
## [0.2.2] - 2025-12-23
1119

1220
### Added
@@ -98,7 +106,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
98106
- TLS enforced via rustls
99107
- cargo-deny configured for vulnerability scanning
100108

101-
[Unreleased]: https://github.com/bug-ops/deps-lsp/compare/v0.2.2...HEAD
109+
[Unreleased]: https://github.com/bug-ops/deps-lsp/compare/v0.2.3...HEAD
110+
[0.2.3]: https://github.com/bug-ops/deps-lsp/compare/v0.2.2...v0.2.3
102111
[0.2.2]: https://github.com/bug-ops/deps-lsp/compare/v0.2.1...v0.2.2
103112
[0.2.1]: https://github.com/bug-ops/deps-lsp/compare/v0.2.0...v0.2.1
104113
[0.2.0]: https://github.com/bug-ops/deps-lsp/compare/v0.1.0...v0.2.0

Cargo.toml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ exclude = ["crates/deps-zed"]
44
resolver = "2"
55

66
[workspace.package]
7-
version = "0.2.2"
7+
version = "0.2.3"
88
edition = "2024"
99
rust-version = "1.89"
1010
authors = ["Andrei G"]
@@ -15,11 +15,11 @@ repository = "https://github.com/bug-ops/deps-lsp"
1515
async-trait = "0.1"
1616
criterion = "0.8"
1717
dashmap = "6.1"
18-
deps-core = { version = "0.2.2", path = "crates/deps-core" }
19-
deps-cargo = { version = "0.2.2", path = "crates/deps-cargo" }
20-
deps-npm = { version = "0.2.2", path = "crates/deps-npm" }
21-
deps-pypi = { version = "0.2.2", path = "crates/deps-pypi" }
22-
deps-lsp = { version = "0.2.2", path = "crates/deps-lsp" }
18+
deps-core = { version = "0.2.3", path = "crates/deps-core" }
19+
deps-cargo = { version = "0.2.3", path = "crates/deps-cargo" }
20+
deps-npm = { version = "0.2.3", path = "crates/deps-npm" }
21+
deps-pypi = { version = "0.2.3", path = "crates/deps-pypi" }
22+
deps-lsp = { version = "0.2.3", path = "crates/deps-lsp" }
2323
futures = "0.3"
2424
insta = "1"
2525
mockito = "1"

crates/deps-cargo/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ authors.workspace = true
77
license.workspace = true
88
repository.workspace = true
99
description = "Cargo.toml support for deps-lsp"
10+
publish = true
1011

1112
[dependencies]
1213
deps-core = { workspace = true }

crates/deps-core/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ authors.workspace = true
77
license.workspace = true
88
repository.workspace = true
99
description = "Core abstractions for deps-lsp: caching, errors, and traits"
10+
publish = true
1011

1112
[dependencies]
1213
async-trait = { workspace = true }

crates/deps-lsp/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ authors.workspace = true
77
license.workspace = true
88
repository.workspace = true
99
description = "Language Server Protocol implementation for dependency management"
10+
publish = true
1011

1112
[[bin]]
1213
name = "deps-lsp"

crates/deps-npm/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ authors.workspace = true
77
license.workspace = true
88
repository.workspace = true
99
description = "npm/package.json support for deps-lsp"
10+
publish = true
1011

1112
[dependencies]
1213
deps-core = { workspace = true }

crates/deps-pypi/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ authors.workspace = true
77
license.workspace = true
88
repository.workspace = true
99
description = "PyPI/Python support for deps-lsp"
10+
publish = true
1011

1112
[dependencies]
1213
deps-core = { workspace = true }

0 commit comments

Comments
 (0)