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
cd293963
Unverified
Commit
cd293963
authored
Oct 10, 2025
by
JJ Kasper
Committed by
GitHub
Oct 10, 2025
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update beta tag (#84725)
Ensures we use correct tag for beta publish same as rc publish.
parent
f09567ea
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
publish-release.js
scripts/publish-release.js
+10
-2
No files found.
scripts/publish-release.js
View file @
cd293963
...
@@ -13,6 +13,7 @@ const cwd = process.cwd()
...
@@ -13,6 +13,7 @@ const cwd = process.cwd()
;(
async
function
()
{
;(
async
function
()
{
let
isCanary
=
true
let
isCanary
=
true
let
isReleaseCandidate
=
false
let
isReleaseCandidate
=
false
let
isBeta
=
false
try
{
try
{
const
tagOutput
=
execSync
(
const
tagOutput
=
execSync
(
...
@@ -24,6 +25,7 @@ const cwd = process.cwd()
...
@@ -24,6 +25,7 @@ const cwd = process.cwd()
isCanary
=
tagOutput
.
includes
(
'-canary'
)
isCanary
=
tagOutput
.
includes
(
'-canary'
)
}
}
isReleaseCandidate
=
tagOutput
.
includes
(
'-rc'
)
isReleaseCandidate
=
tagOutput
.
includes
(
'-rc'
)
isBeta
=
tagOutput
.
includes
(
'-beta'
)
}
catch
(
err
)
{
}
catch
(
err
)
{
console
.
log
(
err
)
console
.
log
(
err
)
...
@@ -34,10 +36,16 @@ const cwd = process.cwd()
...
@@ -34,10 +36,16 @@ const cwd = process.cwd()
throw
err
throw
err
}
}
let
tag
=
isCanary
?
'canary'
:
isReleaseCandidate
?
'rc'
:
'latest'
let
tag
=
isCanary
?
'canary'
:
isReleaseCandidate
?
'rc'
:
isBeta
?
'beta'
:
'latest'
try
{
try
{
if
(
!
isCanary
&&
!
isReleaseCandidate
)
{
if
(
!
isCanary
&&
!
isReleaseCandidate
&&
!
isBeta
)
{
const
version
=
JSON
.
parse
(
const
version
=
JSON
.
parse
(
await
fs
.
promises
.
readFile
(
path
.
join
(
cwd
,
'lerna.json'
),
'utf-8'
)
await
fs
.
promises
.
readFile
(
path
.
join
(
cwd
,
'lerna.json'
),
'utf-8'
)
).
version
).
version
...
...
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