[compiler:publish] Specify https for registry

Uses https for the npm registry so the publishing script isn't rejected.
Fixes:

```
Beginning October 4, 2021, all connections to the npm registry - including for package installation - must use TLS 1.2 or higher. You are currently using plaintext http to connect. Please visit the GitHub blog for more information: https://github.blog/2021-08-23-npm-registry-deprecating-tls-1-0-tls-1-1/
```

ghstack-source-id: b247d044ea
Pull Request resolved: https://github.com/facebook/react/pull/29087
This commit is contained in:
Lauren Tan
2024-05-15 17:40:24 -07:00
parent 5052bfba8b
commit 7f22c5243e
+1 -1
View File
@@ -203,7 +203,7 @@ async function main() {
try {
await spawnHelper(
"npm",
[...opts, "--registry=http://registry.npmjs.org"],
[...opts, "--registry=https://registry.npmjs.org"],
{
cwd: pkgDir,
stdio: "inherit",