Skip to content

Commit 59e5630

Browse files
committed
ci: dont include release notes
1 parent ae2eaf1 commit 59e5630

1 file changed

Lines changed: 5 additions & 7 deletions

File tree

release.js

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ async function release() {
397397
}
398398

399399
// Step 4: create (or resume) the release branch.
400-
const branchExists = run(`git rev-parse --verify ${releaseBranch}`, {
400+
const branchExists = run(`git rev-parse --verify ${releaseBranch} 2>/dev/null`, {
401401
allowFailure: true,
402402
});
403403
if (branchExists) {
@@ -408,13 +408,11 @@ async function release() {
408408
console.log(`✅ Created branch ${releaseBranch}`);
409409
}
410410

411-
// Step 5: release notes, committed as their own change so the working tree
412-
// is clean before cargo-workspaces runs.
411+
// Step 5: generate release notes. The `releases/` dir is gitignored — the
412+
// notes live on the GitHub release page (see Step 10), not in the repo — so
413+
// there's nothing to commit, and the ignored file doesn't dirty the working
414+
// tree before cargo-workspaces runs.
413415
const releaseNotes = generateReleaseNotes(version);
414-
run("git add releases/");
415-
run(`git commit -m "docs: release notes for v${version}"`, {
416-
allowFailure: true, // no-op on resume / nothing to commit
417-
});
418416

419417
// Step 6: bump + publish in dependency order via cargo-workspaces.
420418
// It derives the publish order from the dependency graph and skips crates

0 commit comments

Comments
 (0)