🐛 fix: fixing loop on publish on master

This commit is contained in:
Carlos 2024-08-13 21:37:26 -04:00
parent 9c57d891b8
commit bc086a466f

View File

@ -31,7 +31,7 @@ async function run() {
console.log(
chalk.blue('🔄 Pulling the latest changes from the remote repository...')
);
execSync('git pull origin main', { stdio: 'inherit' });
execSync('git pull origin master', { stdio: 'inherit' });
// Ask the user to choose the version bump type
const { versionType } = await inquirer.prompt([
@ -49,7 +49,7 @@ async function run() {
// Commit and push changes
console.log(chalk.blue('🚀 Pushing changes to the remote repository...'));
execSync('git push origin main --follow-tags', { stdio: 'inherit' });
execSync('git push origin master --follow-tags', { stdio: 'inherit' });
// Publish the package
console.log(chalk.blue('📤 Publishing the package to npm...'));