Unverified Commit d9aaaedf authored by Sebastian "Sebbie" Silbermann's avatar Sebastian "Sebbie" Silbermann Committed by GitHub

[cd] Allow tagging semver-lower releases as `@latest` if `@latest` po… (#94627)

parent 6f168044
......@@ -65,7 +65,10 @@ const cwd = process.cwd()
// during publishing, when users install `next@latest`, they might
// get the backported version instead of the actual "latest" version.
// Therefore, we explicitly set the tag as 'backport' for backports.
tag = 'backport'
// But force @latest tag if we accidentally tagged a prerelase as latest
if (!semver.prerelease(tags.latest)) {
tag = 'backport'
}
}
}
} catch (error) {
......
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