Skip to content

Commit d3a1bb5

Browse files
committed
chore: update rust crates release guide
1 parent bbbb70e commit d3a1bb5

1 file changed

Lines changed: 18 additions & 4 deletions

File tree

scripts/cargo-release.ts

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,24 @@ const main = defineCommand({
6969
console.log(output);
7070

7171
const noChangesCrates = parseNoChangesCrates(output);
72-
if (noChangesCrates.length > 0) {
73-
console.log("\nOptimized command:");
74-
console.log(generateOptimizedCommand(version, noChangesCrates));
75-
}
72+
const excludeFlags = noChangesCrates.map((crate) => `--exclude ${crate}`).join(
73+
" ",
74+
);
75+
console.log("\n 1. Run command to bump version:");
76+
console.log(generateOptimizedCommand(version, noChangesCrates));
77+
console.log("2. Then Commit the changes");
78+
console.log("3. Run command to publish:");
79+
console.log(
80+
`cargo release publish --workspace ${excludeFlags}`,
81+
);
82+
console.log("4. Tag:");
83+
console.log(
84+
`cargo release tag --workspace ${excludeFlags}`,
85+
);
86+
console.log("5. Push:");
87+
console.log(
88+
`git push --tags && git push`,
89+
);
7690
},
7791
});
7892

0 commit comments

Comments
 (0)