From 8a917d771a25f972b7e7c3249bc31d433ad7d5e2 Mon Sep 17 00:00:00 2001 From: Jack Zhao Date: Sat, 16 Jun 2018 23:55:03 -0700 Subject: [PATCH 1/3] node10 --- tasks/e2e-installs.sh | 4 ++-- tasks/e2e-kitchensink.sh | 4 ++-- tasks/e2e-monorepos.sh | 4 ++-- tasks/e2e-simple.sh | 4 ++-- tasks/verdaccio.yaml | 2 +- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/tasks/e2e-installs.sh b/tasks/e2e-installs.sh index b58cd5eafca..f2b8a7bcef9 100755 --- a/tasks/e2e-installs.sh +++ b/tasks/e2e-installs.sh @@ -86,7 +86,7 @@ yarn # Start local registry tmp_registry_log=`mktemp` -nohup npx verdaccio@2.7.2 -c tasks/verdaccio.yaml &>$tmp_registry_log & +nohup npx verdaccio@3.2.0 -c tasks/verdaccio.yaml &>$tmp_registry_log & # Wait for `verdaccio` to boot grep -q 'http address' <(tail -f $tmp_registry_log) @@ -95,7 +95,7 @@ npm set registry "$custom_registry_url" yarn config set registry "$custom_registry_url" # Login so we can publish packages -npx npm-cli-login@0.0.10 -u user -p password -e user@example.com -r "$custom_registry_url" --quotes +(cd && npx npm-auth-to-login@1.0.0 -u user -p password -e user@example.com -r "$custom_registry_url") # Publish the monorepo git clean -df diff --git a/tasks/e2e-kitchensink.sh b/tasks/e2e-kitchensink.sh index b40a487ae4b..833956d0c0e 100755 --- a/tasks/e2e-kitchensink.sh +++ b/tasks/e2e-kitchensink.sh @@ -79,7 +79,7 @@ yarn # Start local registry tmp_registry_log=`mktemp` -nohup npx verdaccio@2.7.2 -c tasks/verdaccio.yaml &>$tmp_registry_log & +nohup npx verdaccio@3.2.0 -c tasks/verdaccio.yaml &>$tmp_registry_log & # Wait for `verdaccio` to boot grep -q 'http address' <(tail -f $tmp_registry_log) @@ -88,7 +88,7 @@ npm set registry "$custom_registry_url" yarn config set registry "$custom_registry_url" # Login so we can publish packages -npx npm-cli-login@0.0.10 -u user -p password -e user@example.com -r "$custom_registry_url" --quotes +(cd && npx npm-auth-to-token@1.0.0 -u user -p password -e user@example.com -r "$custom_registry_url") # Publish the monorepo git clean -df diff --git a/tasks/e2e-monorepos.sh b/tasks/e2e-monorepos.sh index ac7609e79e2..c375fe2272f 100755 --- a/tasks/e2e-monorepos.sh +++ b/tasks/e2e-monorepos.sh @@ -73,7 +73,7 @@ yarn # Start local registry tmp_registry_log=`mktemp` -nohup npx verdaccio@2.7.2 -c tasks/verdaccio.yaml &>$tmp_registry_log & +nohup npx verdaccio@3.2.0 -c tasks/verdaccio.yaml &>$tmp_registry_log & # Wait for `verdaccio` to boot grep -q 'http address' <(tail -f $tmp_registry_log) @@ -82,7 +82,7 @@ npm set registry "$custom_registry_url" yarn config set registry "$custom_registry_url" # Login so we can publish packages -npx npm-cli-login@0.0.10 -u user -p password -e user@example.com -r "$custom_registry_url" --quotes +(cd && npx npm-auth-to-login@1.0.0 -u user -p password -e user@example.com -r "$custom_registry_url") git clean -df ./tasks/publish.sh --yes --force-publish=* --skip-git --cd-version=prerelease --exact --npm-tag=latest diff --git a/tasks/e2e-simple.sh b/tasks/e2e-simple.sh index 701763679c5..2616defbebf 100755 --- a/tasks/e2e-simple.sh +++ b/tasks/e2e-simple.sh @@ -86,7 +86,7 @@ yarn # Start local registry tmp_registry_log=`mktemp` -nohup npx verdaccio@2.7.2 -c tasks/verdaccio.yaml &>$tmp_registry_log & +nohup npx verdaccio@3.2.0 -c tasks/verdaccio.yaml &>$tmp_registry_log & # Wait for `verdaccio` to boot grep -q 'http address' <(tail -f $tmp_registry_log) @@ -95,7 +95,7 @@ npm set registry "$custom_registry_url" yarn config set registry "$custom_registry_url" # Login so we can publish packages -npx npm-cli-login@0.0.10 -u user -p password -e user@example.com -r "$custom_registry_url" --quotes +(cd && npx npm-auth-to-login@1.0.0 -u user -p password -e user@example.com -r "$custom_registry_url") # Lint own code ./node_modules/.bin/eslint --max-warnings 0 packages/babel-preset-react-app/ diff --git a/tasks/verdaccio.yaml b/tasks/verdaccio.yaml index e8a621ed0a4..859bf9c739c 100644 --- a/tasks/verdaccio.yaml +++ b/tasks/verdaccio.yaml @@ -25,7 +25,7 @@ packages: '@*/*': # scoped packages access: $all - publish: $ll + publish: $all proxy: npmjs '**': From 4eba9689a5d1dc89cc17c09aff44ff7af6f8bb6d Mon Sep 17 00:00:00 2001 From: Jack Zhao Date: Sun, 17 Jun 2018 00:35:19 -0700 Subject: [PATCH 2/3] token --- tasks/e2e-installs.sh | 2 +- tasks/e2e-monorepos.sh | 2 +- tasks/e2e-simple.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tasks/e2e-installs.sh b/tasks/e2e-installs.sh index f2b8a7bcef9..48ab42508be 100755 --- a/tasks/e2e-installs.sh +++ b/tasks/e2e-installs.sh @@ -95,7 +95,7 @@ npm set registry "$custom_registry_url" yarn config set registry "$custom_registry_url" # Login so we can publish packages -(cd && npx npm-auth-to-login@1.0.0 -u user -p password -e user@example.com -r "$custom_registry_url") +(cd && npx npm-auth-to-token@1.0.0 -u user -p password -e user@example.com -r "$custom_registry_url") # Publish the monorepo git clean -df diff --git a/tasks/e2e-monorepos.sh b/tasks/e2e-monorepos.sh index c375fe2272f..0f3f70219bd 100755 --- a/tasks/e2e-monorepos.sh +++ b/tasks/e2e-monorepos.sh @@ -82,7 +82,7 @@ npm set registry "$custom_registry_url" yarn config set registry "$custom_registry_url" # Login so we can publish packages -(cd && npx npm-auth-to-login@1.0.0 -u user -p password -e user@example.com -r "$custom_registry_url") +(cd && npx npm-auth-to-token@1.0.0 -u user -p password -e user@example.com -r "$custom_registry_url") git clean -df ./tasks/publish.sh --yes --force-publish=* --skip-git --cd-version=prerelease --exact --npm-tag=latest diff --git a/tasks/e2e-simple.sh b/tasks/e2e-simple.sh index 2616defbebf..da0d9219502 100755 --- a/tasks/e2e-simple.sh +++ b/tasks/e2e-simple.sh @@ -95,7 +95,7 @@ npm set registry "$custom_registry_url" yarn config set registry "$custom_registry_url" # Login so we can publish packages -(cd && npx npm-auth-to-login@1.0.0 -u user -p password -e user@example.com -r "$custom_registry_url") +(cd && npx npm-auth-to-token@1.0.0 -u user -p password -e user@example.com -r "$custom_registry_url") # Lint own code ./node_modules/.bin/eslint --max-warnings 0 packages/babel-preset-react-app/ From fcb37791b148c3d3bb899ad7de3e8994745d0fb7 Mon Sep 17 00:00:00 2001 From: Jack Zhao Date: Sun, 17 Jun 2018 10:08:03 -0700 Subject: [PATCH 3/3] rerun tests --- tasks/verdaccio.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasks/verdaccio.yaml b/tasks/verdaccio.yaml index 859bf9c739c..e98643b7b76 100644 --- a/tasks/verdaccio.yaml +++ b/tasks/verdaccio.yaml @@ -1,6 +1,6 @@ # -# This is the default config file. It allows all users to do anything, -# so don't use it on production systems. +# This is based on verdaccio's default config file. It allows all users +# to do anything, so don't use it on production systems. # # Look here for more config file examples: # https://github.com/verdaccio/verdaccio/tree/master/conf