diff --git a/scripts/release/build-experimental-typescript.js b/scripts/release/build-experimental-typescript.js
index <HASH>..<HASH> 100755
--- a/scripts/release/build-experimental-typescript.js
+++ b/scripts/release/build-experimental-typescript.js
@@ -19,5 +19,11 @@ fs.writeFileSync(
   `export default '${newVersion}';\n`
 );
 
-shell.exec(`NODE_ENV=production VERSION=${newVersion} yarn build`);
-shell.exec('yarn build:types');
+const results = [
+  shell.exec(`NODE_ENV=production VERSION=${newVersion} yarn build`),
+  shell.exec('yarn build:types'),
+];
+
+if (results.some(({ code }) => code !== 0)) {
+  shell.exit(1);
+}
fix(build): ensure build fails when types building fails (#<I>)

* fix(build): ensure build fails when types building fails



* Apply suggestions from code review