Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 18 additions & 18 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ resolver = "2"
members = ["ddk", "dlc", "dlc-messages", "dlc-trie", "payouts", "ddk-node", "ddk-manager", "kormir"]

[workspace.package]
version = "1.0.11"
version = "1.1.0"
edition = "2021"
license = "MIT"
repository = "https://github.com/bennyhodl/dlcdevkit"
Expand Down
12 changes: 5 additions & 7 deletions release.js
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ async function release() {
}

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

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

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