Unverified Commit 9547635b authored by JJ Kasper's avatar JJ Kasper Committed by GitHub

Update canary semver handling (#62852)

As discussed this updates our canary semver bumping to use `preminor`
instead of `prerelease` to avoid overlap with patches/backports and make
it more clear for users which versions go along together.

x-ref: [slack
thread](https://vercel.slack.com/archives/C04DUD7EB1B/p1709583075769789)

Closes NEXT-2701
parent e5a4e82f
...@@ -55,7 +55,7 @@ async function main() { ...@@ -55,7 +55,7 @@ async function main() {
console.log(`Running pnpm release-${isCanary ? 'canary' : 'stable'}...`) console.log(`Running pnpm release-${isCanary ? 'canary' : 'stable'}...`)
const child = execa( const child = execa(
isCanary isCanary
? `pnpm lerna version prerelease --preid canary --force-publish -y && pnpm release --pre --skip-questions --show-url` ? `pnpm lerna version preminor --preid canary --force-publish -y && pnpm release --pre --skip-questions --show-url`
: `pnpm lerna version ${semverType} --force-publish -y`, : `pnpm lerna version ${semverType} --force-publish -y`,
{ {
stdio: 'pipe', stdio: 'pipe',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment