mirror of
https://github.com/harivansh-afk/sandbox-agent.git
synced 2026-04-15 08:03:46 +00:00
fix: use --no-verify when publishing crates to skip verification
This commit is contained in:
parent
e00b6f5d5f
commit
5930137a85
1 changed files with 5 additions and 1 deletions
|
|
@ -99,13 +99,17 @@ export async function publishCrates(opts: ReleaseOpts) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Publish
|
// Publish
|
||||||
|
// Use --no-verify to skip the verification step because:
|
||||||
|
// 1. Code was already built/checked in the setup phase
|
||||||
|
// 2. Verification downloads published dependencies which may not have the latest
|
||||||
|
// changes yet (crates.io indexing takes time)
|
||||||
console.log(`==> Publishing to crates.io: ${crateName}@${opts.version}`);
|
console.log(`==> Publishing to crates.io: ${crateName}@${opts.version}`);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
await $({
|
await $({
|
||||||
stdio: "inherit",
|
stdio: "inherit",
|
||||||
cwd: cratePath,
|
cwd: cratePath,
|
||||||
})`cargo publish --allow-dirty`;
|
})`cargo publish --allow-dirty --no-verify`;
|
||||||
console.log(`✅ Published ${crateName}@${opts.version}`);
|
console.log(`✅ Published ${crateName}@${opts.version}`);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.error(`❌ Failed to publish ${crateName}`);
|
console.error(`❌ Failed to publish ${crateName}`);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue