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
3b0746db
Unverified
Commit
3b0746db
authored
Jun 09, 2026
by
Sebastian "Sebbie" Silbermann
Committed by
GitHub
Jun 09, 2026
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[16.3.x-preview] Setup release branch (#94594)
parent
a1c695a8
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
23 additions
and
16 deletions
+23
-16
build_and_deploy.yml
.github/workflows/build_and_deploy.yml
+4
-1
build_and_test.yml
.github/workflows/build_and_test.yml
+5
-9
trigger_release.yml
.github/workflows/trigger_release.yml
+2
-1
lerna.json
lerna.json
+2
-1
start-release.js
scripts/start-release.js
+10
-4
No files found.
.github/workflows/build_and_deploy.yml
View file @
3b0746db
...
...
@@ -80,6 +80,9 @@ jobs:
elif [[ "$RELEASE_VERSION" == *-beta.* ]];
then
RELEASE_ENVIRONMENT="release-beta"
elif [[ "$RELEASE_VERSION" == *-preview.* ]];
then
RELEASE_ENVIRONMENT="release-preview"
elif [[ "$RELEASE_VERSION" == *-rc.* ]];
then
RELEASE_ENVIRONMENT="release-release-candidate"
...
...
@@ -93,7 +96,7 @@ jobs:
exit 1
fi
echo "release_environment=$RELEASE_ENVIRONMENT" >> $GITHUB_OUTPUT
elif [ ''"${GIT_REF}"'' == 'refs/heads/
canary
' ]
elif [ ''"${GIT_REF}"'' == 'refs/heads/
next-16-3-preview
' ]
then
echo "value=staging" >> $GITHUB_OUTPUT
elif [ '${{ github.event_name }}' == 'workflow_dispatch' ]
...
...
.github/workflows/build_and_test.yml
View file @
3b0746db
...
...
@@ -2,7 +2,7 @@ name: build-and-test
on
:
push
:
branches
:
[
'
canary
'
]
branches
:
[
'
next-16-3-preview
'
]
pull_request
:
types
:
[
opened
,
synchronize
]
...
...
@@ -659,7 +659,7 @@ jobs:
name
:
Test new and changed tests for flakes (dev)
needs
:
[
'
optimize-ci'
,
'
changes'
,
'
build-native'
,
'
build-next'
]
# test-new-tests-if
if
:
${{ needs.optimize-ci.outputs.skip == 'false' && needs.changes.outputs.docs-only == 'false' }}
if
:
false
# test-new-tests-end-if
strategy
:
...
...
@@ -685,7 +685,7 @@ jobs:
name
:
Test new and changed tests for flakes (prod)
needs
:
[
'
optimize-ci'
,
'
changes'
,
'
build-native'
,
'
build-next'
]
# test-new-tests-if
if
:
${{ needs.optimize-ci.outputs.skip == 'false' && needs.changes.outputs.docs-only == 'false' }}
if
:
false
# test-new-tests-end-if
strategy
:
...
...
@@ -711,7 +711,7 @@ jobs:
needs
:
[
'
optimize-ci'
,
'
test-prod'
,
'
test-new-tests-dev'
,
'
test-new-tests-start'
]
# test-new-tests-if
if
:
${{ needs.optimize-ci.outputs.skip == 'false' }}
if
:
false
# test-new-tests-end-if
strategy
:
...
...
@@ -744,7 +744,7 @@ jobs:
'
test-new-tests-start'
,
]
# test-new-tests-if
if
:
${{ needs.optimize-ci.outputs.skip == 'false' }}
if
:
false
# test-new-tests-end-if
strategy
:
...
...
@@ -1042,10 +1042,6 @@ jobs:
'
rustdoc-check'
,
'
test-next-swc-wasm'
,
'
test-turbopack-dev'
,
'
test-new-tests-dev'
,
'
test-new-tests-start'
,
'
test-new-tests-deploy'
,
'
test-new-tests-deploy-cache-components'
,
'
test-turbopack-production'
,
'
test-unit-windows'
,
'
test-dev-windows'
,
...
...
.github/workflows/trigger_release.yml
View file @
3b0746db
...
...
@@ -6,7 +6,7 @@ on:
workflow_dispatch
:
inputs
:
releaseType
:
description
:
stable, canary, beta, or release candidate?
description
:
stable, canary, beta,
preview,
or release candidate?
required
:
true
type
:
choice
options
:
...
...
@@ -14,6 +14,7 @@ on:
-
stable
-
release-candidate
-
beta
-
preview
semverType
:
description
:
semver type?
...
...
lerna.json
View file @
3b0746db
...
...
@@ -10,7 +10,8 @@
"publish"
:
{
"npmClient"
:
"npm"
,
"allowBranch"
:
[
"canary"
"canary"
,
"next-16-3-preview"
],
"registry"
:
"https://registry.npmjs.org/"
}
...
...
scripts/start-release.js
View file @
3b0746db
...
...
@@ -19,15 +19,17 @@ async function main() {
const
isCanary
=
releaseType
===
'canary'
const
isReleaseCandidate
=
releaseType
===
'release-candidate'
const
isBeta
=
releaseType
===
'beta'
const
isPreview
=
releaseType
===
'preview'
if
(
releaseType
!==
'stable'
&&
releaseType
!==
'canary'
&&
releaseType
!==
'release-candidate'
&&
releaseType
!==
'beta'
releaseType
!==
'beta'
&&
releaseType
!==
'preview'
)
{
console
.
log
(
`Invalid release type
${
releaseType
}
, must be stable, canary, release-candidate,
or beta
`
`Invalid release type
${
releaseType
}
, must be stable, canary, release-candidate,
beta, or preview
`
)
return
}
...
...
@@ -74,7 +76,9 @@ async function main() {
const
lernaArgs
=
[
'lerna'
,
'version'
,
isCanary
||
isReleaseCandidate
||
isBeta
?
preleaseType
:
semverType
,
isCanary
||
isReleaseCandidate
||
isBeta
||
isPreview
?
preleaseType
:
semverType
,
]
if
(
isCanary
)
{
...
...
@@ -83,6 +87,8 @@ async function main() {
lernaArgs
.
push
(
'--preid'
,
'rc'
)
}
else
if
(
isBeta
)
{
lernaArgs
.
push
(
'--preid'
,
'beta'
)
}
else
if
(
isPreview
)
{
lernaArgs
.
push
(
'--preid'
,
'preview'
)
}
lernaArgs
.
push
(
'--force-publish'
,
'-y'
,
'--no-push'
)
...
...
@@ -95,7 +101,7 @@ async function main() {
await
createGitHubReleaseCommit
(
githubToken
)
if
(
isCanary
||
isReleaseCandidate
||
isBeta
)
{
if
(
isCanary
||
isReleaseCandidate
||
isBeta
||
isPreview
)
{
const
releaseChild
=
execa
(
'pnpm'
,
[
'release'
,
'--pre'
,
'--skip-questions'
,
'--show-url'
],
...
...
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