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
9439d271
Unverified
Commit
9439d271
authored
Nov 03, 2021
by
JJ Kasper
Committed by
GitHub
Nov 03, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Skip next-swc canary postinstall in CI (#30916)
* Skip next-swc canary postinstall in CI * lint-fix
parent
19a61586
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
build_test_deploy.yml
.github/workflows/build_test_deploy.yml
+3
-0
install-native.mjs
scripts/install-native.mjs
+7
-0
No files found.
.github/workflows/build_test_deploy.yml
View file @
9439d271
...
...
@@ -21,6 +21,9 @@ jobs:
runs-on
:
ubuntu-latest
env
:
NEXT_TELEMETRY_DISABLED
:
1
# we build a dev binary for use in CI so skip downloading
# canary next-swc binaries in the monorepo
NEXT_SKIP_NATIVE_POSTINSTALL
:
1
outputs
:
docsChange
:
${{ steps.docs-change.outputs.DOCS_CHANGE }}
isRelease
:
${{ steps.check-release.outputs.IS_RELEASE }}
...
...
scripts/install-native.mjs
View file @
9439d271
...
...
@@ -3,6 +3,13 @@ import path from 'path'
import
execa
from
'execa'
import
fs
from
'fs-extra'
;(
async
function
()
{
if
(
process
.
env
.
NEXT_SKIP_NATIVE_POSTINSTALL
)
{
console
.
log
(
`Skipping next-swc postinstall due to NEXT_SKIP_NATIVE_POSTINSTALL env`
)
return
}
try
{
let
tmpdir
=
path
.
join
(
os
.
tmpdir
(),
`next-swc-
${
Date
.
now
()}
`
)
await
fs
.
ensureDir
(
tmpdir
)
...
...
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