Require test step to succeed before release step

I have release build step and a test build step.

How do I make the release step not run unless the test step succeeds?

My release step still runs when my tests fail when I make the release step depend on the test step.

const step_test = b.step("test", "Run unit tests.");
const step_release = b.step("release", "Build the release binaries.");
step_release.dependOn(step_test);

My dependency graph was wrong. I needed the install step of my release step to depend on the test step to prevent the install step from running unless my test step succeeded.

Bad:

step_release -> install
step_release -> step_test

Good:

step_release -> install -> step_test

Another time I could really use a Visual Build Graph