old_contents: #!/usr/bin/env node
  const isProdRelease = process.env.BRANCH && process.env.BRANCH === "master"
  const spawn = require('cross-spawn');
  const exec = require('child_process').execSync;
  
  const spawnWithErrorHandling = (...args) => {
    const results = spawn.sync(...args);
    if (results.error) {
      throw results.error;
    }
  };
  
  // Set dist-tag
  const tasks = [
    'run',
    'lerna',
    'publish',
    '--',
    '--yes'
  ]
  
  if (!isProdRelease) { // pre-release
    // tasks.push('--skip-git')
    tasks.push('--cd-version=prerelease')
  }
  
  // Publish packages to npm registry
  spawnWithErrorHandling('npm', tasks, { stdio: 'inherit' });
  
  // console.log('Pushing commit...');
  // exec('git checkout staging');
  // exec('git add .');
  // exec(`git commit -m publish packages`);
  // exec(`git push origin ${process.env.BRANCH}`);
  
  // console.log('Done!');
  
new_contents: #!/usr/bin/env node
  const isProdRelease = process.env.BRANCH && process.env.BRANCH === "master"
  const spawn = require('cross-spawn');
  const exec = require('child_process').execSync;
  
  const spawnWithErrorHandling = (...args) => {
    const results = spawn.sync(...args);
    if (results.error) {
      throw results.error;
    }
  };
  
  // Set dist-tag
  const tasks = [
    'run',
    'lerna',
    'publish',
    '--',
    '--yes'
  ]
  
  if (!isProdRelease) { // pre-release
    tasks.push('--cd-version=prerelease')
  } else {
    tasks.push('--conventional-commits')
  }
  
  // Publish packages to npm registry
  spawnWithErrorHandling('npm', tasks, { stdio: 'inherit' });
  
  // console.log('Pushing commit...');
  // exec('git checkout staging');
  // exec('git add .');
  // exec(`git commit -m publish packages`);
  // exec(`git push origin ${process.env.BRANCH}`);
  
  // console.log('Done!');
  
subject: add conventional commits