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
13e83e14
Unverified
Commit
13e83e14
authored
Apr 30, 2026
by
Sebastian "Sebbie" Silbermann
Committed by
GitHub
Apr 30, 2026
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ci] Add support for private preview builds (#93375)
parent
a35edcfb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletion
+8
-1
upload_preview_tarballs.yml
.github/workflows/upload_preview_tarballs.yml
+1
-0
upload-preview-tarballs.js
scripts/upload-preview-tarballs.js
+7
-1
No files found.
.github/workflows/upload_preview_tarballs.yml
View file @
13e83e14
...
@@ -67,4 +67,5 @@ jobs:
...
@@ -67,4 +67,5 @@ jobs:
github.event.workflow_run.head_sha }}" "${{ runner.temp
github.event.workflow_run.head_sha }}" "${{ runner.temp
}}/preview-tarballs"
}}/preview-tarballs"
env
:
env
:
BLOB_ACCESS
:
${{ vars.PREVIEW_BUILDS_ACCESS }}
BLOB_READ_WRITE_TOKEN
:
${{ secrets.PREVIEW_BUILDS_BLOB_READ_WRITE_TOKEN }}
BLOB_READ_WRITE_TOKEN
:
${{ secrets.PREVIEW_BUILDS_BLOB_READ_WRITE_TOKEN }}
scripts/upload-preview-tarballs.js
View file @
13e83e14
...
@@ -58,6 +58,12 @@ async function main() {
...
@@ -58,6 +58,12 @@ async function main() {
if
(
!
process
.
env
.
BLOB_READ_WRITE_TOKEN
)
{
if
(
!
process
.
env
.
BLOB_READ_WRITE_TOKEN
)
{
throw
new
Error
(
'BLOB_READ_WRITE_TOKEN environment variable is required'
)
throw
new
Error
(
'BLOB_READ_WRITE_TOKEN environment variable is required'
)
}
}
const
blobAccess
=
process
.
env
.
BLOB_ACCESS
if
(
blobAccess
!==
'private'
&&
blobAccess
!==
'public'
)
{
throw
new
Error
(
`BLOB_ACCESS environment variable can only be "private" or "public" but got "
${
blobAccess
}
".`
)
}
for
await
(
const
{
packageName
,
tarballPath
}
of
findTarballs
(
for
await
(
const
{
packageName
,
tarballPath
}
of
findTarballs
(
tarballDirectory
tarballDirectory
...
@@ -66,7 +72,7 @@ async function main() {
...
@@ -66,7 +72,7 @@ async function main() {
const
fileBuffer
=
await
fs
.
readFile
(
tarballPath
)
const
fileBuffer
=
await
fs
.
readFile
(
tarballPath
)
const
{
url
}
=
await
put
(
blobPathname
,
fileBuffer
,
{
const
{
url
}
=
await
put
(
blobPathname
,
fileBuffer
,
{
access
:
'public'
,
access
:
blobAccess
,
addRandomSuffix
:
false
,
addRandomSuffix
:
false
,
contentType
:
'application/gzip'
,
contentType
:
'application/gzip'
,
})
})
...
...
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