Skip to content

🎥 Make videos programmatically with React

Please be on the main branch

JonnyBurger5a2acccd1b67
diff --git a/set-version.ts b/set-version.ts
index 464acd0d88..a5ed6ee3f1 100644
--- a/set-version.ts
+++ b/set-version.ts
@@ -27,6 +27,10 @@ const currentBranch = execSync('git rev-parse --abbrev-ref HEAD', {
encoding: 'utf-8',
}).trim();
+if (currentBranch !== 'main') {
+ throw new Error('Please be on the main branch');
+}
+
const dirs = readdirSync('packages')
.filter((dir) =>
lstatSync(path.join(process.cwd(), 'packages', dir)).isDirectory(),