Skip to content

Commit

Permalink
chore: force minor bumps at most
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Mar 7, 2023
1 parent 60d07df commit 0b82f67
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripts/bump-edge.ts
Expand Up @@ -21,10 +21,11 @@ async function main () {
const latestTag = execaSync('git', ['describe', '--tags', '--abbrev=0']).stdout

const commits = await getGitDiff(latestTag)
const bumpType = determineSemverChange(parseCommits(commits, config), config)
let bumpType = determineSemverChange(parseCommits(commits, config), config)
if (bumpType === 'major') { bumpType = 'minor' } // 🙈

for (const pkg of workspace.packages.filter(p => !p.data.private)) {
const newVersion = inc(pkg.data.version, bumpType || 'prerelease')
const newVersion = inc(pkg.data.version, bumpType || 'patch')
workspace.setVersion(pkg.data.name, `${newVersion}-${date}.${commit}`)
const newname = pkg.data.name === 'nuxt' ? 'nuxt3' : (pkg.data.name + '-edge')
workspace.rename(pkg.data.name, newname)
Expand Down

0 comments on commit 0b82f67

Please sign in to comment.