chore: bump rc version for edge versions (#7117)

This commit is contained in:
pooya parsa 2022-08-31 21:17:42 +02:00 committed by GitHub
parent e38e1de740
commit 612580d633
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,6 +3,7 @@ import { execSync } from 'node:child_process'
import { $fetch } from 'ohmyfetch' import { $fetch } from 'ohmyfetch'
import { resolve } from 'pathe' import { resolve } from 'pathe'
import { globby } from 'globby' import { globby } from 'globby'
import { inc } from 'semver'
interface Dep { interface Dep {
name: string, name: string,
@ -107,7 +108,9 @@ async function main () {
nuxtPkg.data.dependencies.nitropack = `npm:nitropack-edge@^${latestNitro}` nuxtPkg.data.dependencies.nitropack = `npm:nitropack-edge@^${latestNitro}`
for (const pkg of workspace.packages.filter(p => !p.data.private)) { 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') const newname = pkg.data.name === 'nuxt' ? 'nuxt3' : (pkg.data.name + '-edge')
workspace.rename(pkg.data.name, newname) workspace.rename(pkg.data.name, newname)
} }