diff --git a/scripts/bump-edge.ts b/scripts/bump-edge.ts index 426d7c828d..3517d57ef2 100644 --- a/scripts/bump-edge.ts +++ b/scripts/bump-edge.ts @@ -3,6 +3,7 @@ import { execSync } from 'node:child_process' import { $fetch } from 'ohmyfetch' import { resolve } from 'pathe' import { globby } from 'globby' +import { inc } from 'semver' interface Dep { name: string, @@ -107,7 +108,9 @@ async function main () { nuxtPkg.data.dependencies.nitropack = `npm:nitropack-edge@^${latestNitro}` for (const pkg of workspace.packages.filter(p => !p.data.private)) { - workspace.setVersion(pkg.data.name, `${pkg.data.version}-${date}.${commit}`) + // TODO: Set release type based on changelog after 3.0.0 + const newVersion = inc(pkg.data.version, 'prerelease', 'rc') + 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) }