mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Merge pull request #35963 from hoxyq/0.71-stable-fix-verdaccio-on-ios
This commit is contained in:
@@ -51,8 +51,8 @@ references:
|
||||
# -------------------------
|
||||
dependency_versions:
|
||||
xcode_version: &xcode_version "14.0.1"
|
||||
nodelts_image: &nodelts_image "cimg/node:16.14"
|
||||
nodeprevlts_image: &nodeprevlts_image "cimg/node:14.19"
|
||||
nodelts_image: &nodelts_image "cimg/node:18.12.1"
|
||||
nodeprevlts_image: &nodeprevlts_image "cimg/node:16.18.1"
|
||||
|
||||
# -------------------------
|
||||
# Cache Key Anchors
|
||||
@@ -612,7 +612,7 @@ jobs:
|
||||
- run:
|
||||
name: Configure Environment Variables
|
||||
command: |
|
||||
echo 'export PATH=/usr/local/opt/node@16/bin:$PATH' >> $BASH_ENV
|
||||
echo 'export PATH=/usr/local/opt/node@18/bin:$PATH' >> $BASH_ENV
|
||||
source $BASH_ENV
|
||||
|
||||
- run:
|
||||
@@ -1496,10 +1496,6 @@ jobs:
|
||||
- equal: [ "nightly", << parameters.release_type >> ]
|
||||
steps:
|
||||
- run: echo "//registry.npmjs.org/:_authToken=${CIRCLE_NPM_TOKEN}" > ~/.npmrc
|
||||
- run: |
|
||||
git config --global user.email "react-native-bot@users.noreply.github.com"
|
||||
git config --global user.name "npm Deployment Script"
|
||||
echo "machine github.com login react-native-bot password $GITHUB_TOKEN" > ~/.netrc
|
||||
# END: Stables and nightlies
|
||||
|
||||
- run: node ./scripts/publish-npm.js --<< parameters.release_type >>
|
||||
|
||||
+1
-1
@@ -1 +1 @@
|
||||
16
|
||||
18
|
||||
|
||||
@@ -28,6 +28,10 @@ function setupVerdaccio(
|
||||
);
|
||||
}
|
||||
|
||||
execSync('echo "//localhost:4873/:_authToken=secretToken" > .npmrc', {
|
||||
cwd: reactNativeRootPath,
|
||||
});
|
||||
|
||||
const verdaccioProcess = spawn(
|
||||
'npx',
|
||||
['verdaccio@5.16.3', '--config', verdaccioConfigPath],
|
||||
@@ -37,11 +41,7 @@ function setupVerdaccio(
|
||||
const VERDACCIO_PID = verdaccioProcess.pid;
|
||||
|
||||
execSync('npx wait-on@6.0.1 http://localhost:4873');
|
||||
|
||||
execSync('npm set registry http://localhost:4873');
|
||||
execSync('echo "//localhost:4873/:_authToken=secretToken" > .npmrc', {
|
||||
cwd: reactNativeRootPath,
|
||||
});
|
||||
|
||||
return VERDACCIO_PID;
|
||||
}
|
||||
|
||||
@@ -1 +1 @@
|
||||
16
|
||||
18
|
||||
|
||||
Reference in New Issue
Block a user