Skip to content

Commit

Permalink
chore: bump rc version for edge versions (nuxt#7117)
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 authored Aug 31, 2022
1 parent e38e1de commit 612580d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/bump-edge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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)
}
Expand Down

0 comments on commit 612580d

Please sign in to comment.