feat: adding versioning script on master

This commit is contained in:
Carlos 2024-08-13 21:31:51 -04:00
parent 32f2a15bfb
commit a5501852c3

View File

@ -21,7 +21,7 @@ async function run() {
console.log( console.log(
chalk.blue('Pulling the latest changes from the remote repository...') 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 // Ask the user to choose the version bump type
const { versionType } = await inquirer.prompt([ const { versionType } = await inquirer.prompt([
@ -39,7 +39,7 @@ async function run() {
// Commit and push changes // Commit and push changes
console.log(chalk.blue('Pushing changes to the remote repository...')); 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 // Publish the package
//console.log(chalk.blue('Publishing the package to npm...')); //console.log(chalk.blue('Publishing the package to npm...'));