script/prepare-release.js
async function changesToRelease () {
  const lastCommitWasRelease = new RegExp(`^Bump v[0-9.]*(-beta[0-9.]*)?(-nightly[0-9.]*)?$`, 'g')
  const lastCommit = await GitProcess.exec(['log', '-n', '1', `--pretty=format:'%s'`], gitDir)
  return !lastCommitWasRelease.test(lastCommit.stdout)
}
async function changesToRelease () {
  const lastCommitWasRelease = new RegExp(`^Bump v[0-9.]*(-beta[0-9.]*)?(-nightly[0-9.]*)?$`, 'g')
  const lastCommit = await GitProcess.exec(['log', '-n', '1', `--pretty=format:'%s'`], gitDir)
  return !lastCommitWasRelease.test(lastCommit.stdout)
}
async function changesToRelease ( ) { const lastCommitWasRelease = new RegExp ( ` ` , 'g' ) const lastCommit = await GitProcess . exec ( [ 'log' , '-n' , '1' , ` ` ] , gitDir ) return ! lastCommitWasRelease . test ( lastCommit . stdout ) }
function to determine if there have been commits to master since the last release
function to determine if there have been commits to master since the last release