mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 13:45:18 +00:00
chore: bump rc version for edge versions (#7117)
This commit is contained in:
parent
e38e1de740
commit
612580d633
@ -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)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user