diff --git a/.circleci/verdaccio.yml b/.circleci/verdaccio.yml new file mode 100644 index 00000000000000..5209a79f193947 --- /dev/null +++ b/.circleci/verdaccio.yml @@ -0,0 +1,44 @@ +storage: ./storage +auth: + htpasswd: + file: ./htpasswd +uplinks: + npmjs: + url: https://registry.yarnpkg.com/ + max_fails: 40 + maxage: 30m + timeout: 60s + fail_timeout: 10m + cache: false + agent_options: + keepAlive: true + maxSockets: 40 + maxFreeSockets: 10 +packages: + # Group and isolate all local packages, avoid being proxy from outside + '@react-native/*': + access: $all + publish: $all + # The below specific entries can be removed once they are renamed and have the @react-native prefix + '@react-native-community/eslint-config': + access: $all + publish: $all + '@react-native-community/eslint-plugin': + access: $all + publish: $all + 'react-native-codegen': + access: $all + publish: $all + 'react-native-gradle-plugin': + access: $all + publish: $all + '@*/*': + access: $all + publish: $all + proxy: npmjs + '**': + access: $all + publish: $all + proxy: npmjs +logs: + - {type: file, path: verdaccio.log, format: json, level: warn} diff --git a/.circleci/verdaccio/config.yml b/.circleci/verdaccio/config.yml deleted file mode 100644 index de1d51f4d9ef11..00000000000000 --- a/.circleci/verdaccio/config.yml +++ /dev/null @@ -1,27 +0,0 @@ -storage: ./storage -auth: - htpasswd: - file: ./htpasswd -uplinks: - npmjs: - url: https://registry.yarnpkg.com/ - max_fails: 40 - maxage: 30m - timeout: 60s - fail_timeout: 10m - cache: false - agent_options: - keepAlive: true - maxSockets: 40 - maxFreeSockets: 10 -packages: - '@*/*': - access: $all - publish: $all - proxy: npmjs - '**': - access: $all - publish: $all - proxy: npmjs -logs: - - {type: file, path: verdaccio.log, format: pretty, level: debug} diff --git a/scripts/run-ci-e2e-tests.js b/scripts/run-ci-e2e-tests.js index 4b1f0bd4b60ce9..1a99201669004c 100644 --- a/scripts/run-ci-e2e-tests.js +++ b/scripts/run-ci-e2e-tests.js @@ -75,7 +75,7 @@ try { const verdaccioProcess = spawn('npx', [ 'verdaccio@5.15.3', '--config', - '.circleci/verdaccio/config.yml', + '.circleci/verdaccio.yml', ]); VERDACCIO_PID = verdaccioProcess.pid; exec('npx wait-on@6.0.1 http://localhost:4873'); @@ -92,19 +92,6 @@ try { packageName !== '@react-native/tester' && packageName !== '@react-native/repo-config', ) - .filter(packageName => { - const yarnInfo = exec(`yarn info ${packageName} --json`); - if (yarnInfo.stderr !== '') { - return true; - } - const versions = JSON.parse( - exec(`yarn info ${packageName} --json`).stdout.trim(), - ).data.versions; - const currentVersion = require(`${process.cwd()}/${ - packages[packageName].location - }/package.json`).version; - return !versions.includes(currentVersion); - }) .forEach(packageName => { exec( `cd ${packages[packageName].location} && npm publish --registry http://localhost:4873 --yes --access public`, diff --git a/template/package.json b/template/package.json index 5300570ea3dcbd..98dd49a0886c1b 100644 --- a/template/package.json +++ b/template/package.json @@ -16,7 +16,7 @@ "devDependencies": { "@babel/core": "^7.12.9", "@babel/runtime": "^7.12.5", - "@react-native-community/eslint-config": "^2.0.0", + "@react-native-community/eslint-config": "^3.0.0", "babel-jest": "^26.6.3", "eslint": "^8.19.0", "jest": "^26.6.3",