Skip to content

Commit

Permalink
chore: fix publish script
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisBrunner committed Dec 12, 2024
1 parent 5d62d79 commit 76f858e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion esbuild/publish.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const main = async () => {

console.log('🔍 Checking we are on main')
const branch = getCommandOutput('git', 'branch', '--show-current')
if (branch !== 'main') {
if (branch.trim() !== 'main') {
console.error('❌ Please switch to main branch before publishing')
process.exit(1)
}
Expand Down

0 comments on commit 76f858e

Please sign in to comment.