Auto merge of #17862 - lnicola:publish-libs-members, r=lnicola

Only keep lib/ in publish-libs

Follow-up to #17860, see https://github.com/rust-lang/rust-analyzer/actions/runs/10350212090/job/28646162590.
This commit is contained in:
bors 2024-08-12 10:50:59 +00:00
commit a13f330060

View file

@ -30,7 +30,6 @@ jobs:
run: | run: |
git config --global user.email "runner@gha.local" git config --global user.email "runner@gha.local"
git config --global user.name "GitHub Action" git config --global user.name "GitHub Action"
# Remove r-a crates from the workspaces so we don't auto-publish them as well # Only publish the crates under lib/
sed -i 's/"crates\/\*"//' ./Cargo.toml sed -i 's|^members = .*$|members = ["lib/*"]|' Cargo.toml
sed -i 's/"xtask\/"//' ./Cargo.toml
cargo workspaces publish --yes --exact --from-git --no-git-commit --allow-dirty cargo workspaces publish --yes --exact --from-git --no-git-commit --allow-dirty