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
37562a6e
Unverified
Commit
37562a6e
authored
Oct 22, 2026
by
Niklas Mischkulnig
Committed by
GitHub
Oct 22, 2026
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'releases/lts/active' into gpt/backport-durable-cache-lts-active
parents
33d49492
cf9d27d9
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
154 additions
and
89 deletions
+154
-89
build_and_deploy.yml
.github/workflows/build_and_deploy.yml
+57
-14
publish-release.js
scripts/publish-release.js
+0
-73
undraft-release.js
scripts/undraft-release.js
+95
-0
react-virtualized.test.ts
...-image-legacy/react-virtualized/react-virtualized.test.ts
+1
-1
react-virtualized.test.ts
...ext-image-new/react-virtualized/react-virtualized.test.ts
+1
-1
No files found.
.github/workflows/build_and_deploy.yml
View file @
37562a6e
...
@@ -670,10 +670,62 @@ jobs:
...
@@ -670,10 +670,62 @@ jobs:
merge-multiple
:
true
merge-multiple
:
true
path
:
crates/wasm
path
:
crates/wasm
# Un-drafting the GitHub release must stay authenticated as the bot:
-
run
:
./scripts/publish-release.js
# events caused by GITHUB_TOKEN (github-actions[bot]) do not trigger
env
:
# workflow runs, and release-published automations depend on the event.
BAIL_ON_NATIVE_WASM_PUBLISH_FAILURE
:
${{ vars.BAIL_ON_NATIVE_WASM_PUBLISH_FAILURE }}
# The key comes from this job's release-* environment secret.
-
name
:
Upload pnpm publish summary
if
:
always()
uses
:
actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a
# v7.0.1
with
:
name
:
pnpm-publish-summary
path
:
pnpm-publish-summary.json
if-no-files-found
:
ignore
undraftRelease
:
name
:
Un-draft GitHub release
needs
:
-
deploy-target
-
publishRelease
# Only prerelease channels get a draft GitHub release. The un-draft runs
# after the gated publish, so the tag is already trusted.
if
:
${{ needs.publishRelease.result == 'success' && needs.deploy-target.outputs.release_environment != 'release-stable' }}
runs-on
:
ubuntu-latest
environment
:
bot-autonomous
permissions
:
contents
:
read
steps
:
-
uses
:
actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
# v6.0.2
with
:
persist-credentials
:
false
-
name
:
Setup node
uses
:
actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e
# v6.4.0
with
:
node-version-file
:
.node-version
check-latest
:
true
package-manager-cache
:
false
-
name
:
Setup corepack
run
:
|
npm i -g corepack@0.31
corepack enable
-
id
:
get-store-path
run
:
echo STORE_PATH=$(pnpm store path) >> $GITHUB_OUTPUT
-
uses
:
actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae
# v5.0.5
timeout-minutes
:
5
id
:
cache-pnpm-store
with
:
path
:
${{ steps.get-store-path.outputs.STORE_PATH }}
key
:
pnpm-store-root-v1-${{ hashFiles('pnpm-lock.yaml') }}
# Do not use restore-keys since it leads to indefinite growth of the cache.
-
name
:
Install dependencies
# Just need scripts/ but those dependencies are listed in the workspace root.
run
:
pnpm install --filter .
-
name
:
Create GitHub App token
-
name
:
Create GitHub App token
id
:
release-app-token
id
:
release-app-token
uses
:
actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1
# v3.2.0
uses
:
actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1
# v3.2.0
...
@@ -684,18 +736,9 @@ jobs:
...
@@ -684,18 +736,9 @@ jobs:
repositories
:
next.js
repositories
:
next.js
permission-contents
:
write
permission-contents
:
write
-
run
:
./scripts/publish
-release.js
-
run
:
node ./scripts/undraft
-release.js
env
:
env
:
RELEASE_GITHUB_TOKEN
:
${{ steps.release-app-token.outputs.token }}
RELEASE_GITHUB_TOKEN
:
${{ steps.release-app-token.outputs.token }}
BAIL_ON_NATIVE_WASM_PUBLISH_FAILURE
:
${{ vars.BAIL_ON_NATIVE_WASM_PUBLISH_FAILURE }}
-
name
:
Upload pnpm publish summary
if
:
always()
uses
:
actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a
# v7.0.1
with
:
name
:
pnpm-publish-summary
path
:
pnpm-publish-summary.json
if-no-files-found
:
ignore
reportPublishFailure
:
reportPublishFailure
:
name
:
report publish failure to slack
name
:
report publish failure to slack
...
...
scripts/publish-release.js
View file @
37562a6e
...
@@ -6,10 +6,6 @@ const execa = require('execa')
...
@@ -6,10 +6,6 @@ const execa = require('execa')
const
semver
=
require
(
'semver'
)
const
semver
=
require
(
'semver'
)
const
{
Sema
}
=
require
(
'async-sema'
)
const
{
Sema
}
=
require
(
'async-sema'
)
const
fs
=
require
(
'fs/promises'
)
const
fs
=
require
(
'fs/promises'
)
const
{
getGitHubToken
,
getGitHubTokenMissingMessage
,
}
=
require
(
'./release-github-auth'
)
const
cwd
=
process
.
cwd
()
const
cwd
=
process
.
cwd
()
const
dryRun
=
process
.
argv
.
includes
(
'--dry-run'
)
const
dryRun
=
process
.
argv
.
includes
(
'--dry-run'
)
...
@@ -296,75 +292,6 @@ const publishRetryDelaySeconds = 15
...
@@ -296,75 +292,6 @@ const publishRetryDelaySeconds = 15
npmDistTag
,
npmDistTag
,
...(
dryRun
?
[
'--dry-run'
]
:
[]),
...(
dryRun
?
[
'--dry-run'
]
:
[]),
])
])
if
(
dryRun
)
{
console
.
log
(
'Dry run: skipping GitHub release un-draft'
)
return
}
const
githubToken
=
getGitHubToken
()
if
(
!
githubToken
)
{
throw
new
Error
(
getGitHubTokenMissingMessage
())
}
if
(
isPrerelease
)
{
try
{
const
ghHeaders
=
{
Accept
:
'application/vnd.github+json'
,
Authorization
:
`Bearer
${
githubToken
}
`
,
'X-GitHub-Api-Version'
:
'2022-11-28'
,
}
const
tag
=
`v
${
version
}
`
let
release
let
releasesData
// The release might take a minute to show up in
// the list so retry a bit
for
(
let
i
=
0
;
i
<
6
;
i
++
)
{
try
{
const
releaseUrlRes
=
await
fetch
(
`https://api.github.com/repos/vercel/next.js/releases`
,
{
headers
:
ghHeaders
,
}
)
releasesData
=
await
releaseUrlRes
.
json
()
release
=
releasesData
.
find
((
release
)
=>
release
.
tag_name
===
tag
)
}
catch
(
err
)
{
console
.
log
(
`Fetching release failed`
,
err
)
}
if
(
!
release
)
{
console
.
log
(
`Retrying in 10s...`
)
await
new
Promise
((
resolve
)
=>
setTimeout
(
resolve
,
10
*
1000
))
}
}
if
(
!
release
)
{
console
.
log
(
`Failed to find release`
,
releasesData
)
return
}
const
undraftRes
=
await
fetch
(
release
.
url
,
{
headers
:
ghHeaders
,
method
:
'PATCH'
,
body
:
JSON
.
stringify
({
draft
:
false
,
name
:
tag
,
}),
})
if
(
undraftRes
.
ok
)
{
console
.
log
(
`un-drafted
${
prereleaseChannel
}
release successfully`
)
}
else
{
console
.
log
(
`Failed to undraft`
,
await
undraftRes
.
text
())
}
}
catch
(
err
)
{
console
.
error
(
`Failed to undraft release`
,
err
)
}
}
})().
catch
((
err
)
=>
{
})().
catch
((
err
)
=>
{
console
.
error
(
err
)
console
.
error
(
err
)
process
.
exit
(
1
)
process
.
exit
(
1
)
...
...
scripts/undraft-release.js
0 → 100644
View file @
37562a6e
#!/usr/bin/env node
// @ts-check
const
semver
=
require
(
'semver'
)
const
fs
=
require
(
'fs/promises'
)
const
path
=
require
(
'path'
)
const
{
getGitHubToken
,
getGitHubTokenMissingMessage
,
}
=
require
(
'./release-github-auth'
)
const
cwd
=
process
.
cwd
()
;(
async
function
()
{
const
{
version
}
=
JSON
.
parse
(
await
fs
.
readFile
(
path
.
join
(
cwd
,
'lerna.json'
),
'utf-8'
)
)
const
parsedVersion
=
semver
.
parse
(
version
)
if
(
parsedVersion
===
null
)
{
throw
new
Error
(
`Invalid version in lerna.json:
${
version
}
`
)
}
const
{
prerelease
}
=
parsedVersion
const
isPrerelease
=
prerelease
.
length
>
0
if
(
!
isPrerelease
)
{
console
.
log
(
'Not a prerelease: nothing to un-draft'
)
return
}
const
prereleaseChannel
=
prerelease
[
0
]
const
githubToken
=
getGitHubToken
()
if
(
!
githubToken
)
{
throw
new
Error
(
getGitHubTokenMissingMessage
())
}
try
{
const
ghHeaders
=
{
Accept
:
'application/vnd.github+json'
,
Authorization
:
`Bearer
${
githubToken
}
`
,
'X-GitHub-Api-Version'
:
'2022-11-28'
,
}
const
tag
=
`v
${
version
}
`
let
release
let
releasesData
// The release might take a minute to show up in
// the list so retry a bit
for
(
let
i
=
0
;
i
<
6
;
i
++
)
{
try
{
const
releaseUrlRes
=
await
fetch
(
`https://api.github.com/repos/vercel/next.js/releases`
,
{
headers
:
ghHeaders
,
}
)
releasesData
=
await
releaseUrlRes
.
json
()
release
=
releasesData
.
find
((
release
)
=>
release
.
tag_name
===
tag
)
}
catch
(
err
)
{
console
.
log
(
`Fetching release failed`
,
err
)
}
if
(
!
release
)
{
console
.
log
(
`Retrying in 10s...`
)
await
new
Promise
((
resolve
)
=>
setTimeout
(
resolve
,
10
*
1000
))
}
}
if
(
!
release
)
{
console
.
log
(
`Failed to find release`
,
releasesData
)
return
}
const
undraftRes
=
await
fetch
(
release
.
url
,
{
headers
:
ghHeaders
,
method
:
'PATCH'
,
body
:
JSON
.
stringify
({
draft
:
false
,
name
:
tag
,
}),
})
if
(
undraftRes
.
ok
)
{
console
.
log
(
`un-drafted
${
prereleaseChannel
}
release successfully`
)
}
else
{
console
.
log
(
`Failed to undraft`
,
await
undraftRes
.
text
())
}
}
catch
(
err
)
{
console
.
error
(
`Failed to undraft release`
,
err
)
}
})().
catch
((
err
)
=>
{
console
.
error
(
err
)
process
.
exit
(
1
)
})
test/production/next-image-legacy/react-virtualized/react-virtualized.test.ts
View file @
37562a6e
...
@@ -10,7 +10,7 @@ describe('react-virtualized wrapping next/legacy/image', () => {
...
@@ -10,7 +10,7 @@ describe('react-virtualized wrapping next/legacy/image', () => {
files
:
__dirname
,
files
:
__dirname
,
skipStart
:
true
,
skipStart
:
true
,
dependencies
:
{
dependencies
:
{
'react-virtualized'
:
'
latest
'
,
'react-virtualized'
:
'
9.22.6
'
,
'http-proxy'
:
'1.18.1'
,
'http-proxy'
:
'1.18.1'
,
},
},
})
})
...
...
test/production/next-image-new/react-virtualized/react-virtualized.test.ts
View file @
37562a6e
...
@@ -10,7 +10,7 @@ describe('react-virtualized wrapping next/image', () => {
...
@@ -10,7 +10,7 @@ describe('react-virtualized wrapping next/image', () => {
files
:
__dirname
,
files
:
__dirname
,
skipStart
:
true
,
skipStart
:
true
,
dependencies
:
{
dependencies
:
{
'react-virtualized'
:
'
latest
'
,
'react-virtualized'
:
'
9.22.6
'
,
'http-proxy'
:
'1.18.1'
,
'http-proxy'
:
'1.18.1'
,
},
},
})
})
...
...
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