Skip to content

Commit fb4e4dc

Browse files
committed
chore(release): fail release if types don't check out
1 parent 7b3e0f9 commit fb4e4dc

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

scripts/release.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,11 @@ async function cliExecutor(logger, state) {
5656
await bumpPackageJson(pkg, state.flags.version.substring(1));
5757
}
5858

59+
const { exitCode } = await spawn("npx", ["compas", "run", "types"]);
60+
if (exitCode !== 0) {
61+
throw new Error();
62+
}
63+
5964
await spawn("npm", ["i"]);
6065
await spawn("git", ["add", "./package-lock.json"]);
6166

0 commit comments

Comments
 (0)