Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex
next.js
Commits
d9aaaedf
Unverified
Commit
d9aaaedf
authored
Jun 09, 2026
by
Sebastian "Sebbie" Silbermann
Committed by
GitHub
Jun 09, 2026
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[cd] Allow tagging semver-lower releases as `@latest` if `@latest` po… (#94627)
parent
6f168044
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
publish-release.js
scripts/publish-release.js
+4
-1
No files found.
scripts/publish-release.js
View file @
d9aaaedf
...
...
@@ -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
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment