Skip to content

Commit e1ee803

Browse files
Jack ZhaoTimer
Jack Zhao
authored andcommitted
Fix node 10 npm login issue (facebook#4626)
* node10 * token * rerun tests
1 parent f26ed0f commit e1ee803

5 files changed

+11
-11
lines changed

tasks/e2e-installs.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ yarn
8686

8787
# Start local registry
8888
tmp_registry_log=`mktemp`
89-
nohup npx verdaccio@2.7.2 -c tasks/verdaccio.yaml &>$tmp_registry_log &
89+
nohup npx verdaccio@3.2.0 -c tasks/verdaccio.yaml &>$tmp_registry_log &
9090
# Wait for `verdaccio` to boot
9191
grep -q 'http address' <(tail -f $tmp_registry_log)
9292

@@ -95,7 +95,7 @@ npm set registry "$custom_registry_url"
9595
yarn config set registry "$custom_registry_url"
9696

9797
# Login so we can publish packages
98-
npx npm-cli-login@0.0.10 -u user -p password -e user@example.com -r "$custom_registry_url" --quotes
98+
(cd && npx npm-auth-to-token@1.0.0 -u user -p password -e user@example.com -r "$custom_registry_url")
9999

100100
# Publish the monorepo
101101
git clean -df

tasks/e2e-kitchensink.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ yarn
7979

8080
# Start local registry
8181
tmp_registry_log=`mktemp`
82-
nohup npx verdaccio@2.7.2 -c tasks/verdaccio.yaml &>$tmp_registry_log &
82+
nohup npx verdaccio@3.2.0 -c tasks/verdaccio.yaml &>$tmp_registry_log &
8383
# Wait for `verdaccio` to boot
8484
grep -q 'http address' <(tail -f $tmp_registry_log)
8585

@@ -88,7 +88,7 @@ npm set registry "$custom_registry_url"
8888
yarn config set registry "$custom_registry_url"
8989

9090
# Login so we can publish packages
91-
npx npm-cli-login@0.0.10 -u user -p password -e user@example.com -r "$custom_registry_url" --quotes
91+
(cd && npx npm-auth-to-token@1.0.0 -u user -p password -e user@example.com -r "$custom_registry_url")
9292

9393
# Publish the monorepo
9494
git clean -df

tasks/e2e-monorepos.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ yarn
7373

7474
# Start local registry
7575
tmp_registry_log=`mktemp`
76-
nohup npx verdaccio@2.7.2 -c tasks/verdaccio.yaml &>$tmp_registry_log &
76+
nohup npx verdaccio@3.2.0 -c tasks/verdaccio.yaml &>$tmp_registry_log &
7777
# Wait for `verdaccio` to boot
7878
grep -q 'http address' <(tail -f $tmp_registry_log)
7979

@@ -82,7 +82,7 @@ npm set registry "$custom_registry_url"
8282
yarn config set registry "$custom_registry_url"
8383

8484
# Login so we can publish packages
85-
npx npm-cli-login@0.0.10 -u user -p password -e user@example.com -r "$custom_registry_url" --quotes
85+
(cd && npx npm-auth-to-token@1.0.0 -u user -p password -e user@example.com -r "$custom_registry_url")
8686

8787
git clean -df
8888
./tasks/publish.sh --yes --force-publish=* --skip-git --cd-version=prerelease --exact --npm-tag=latest

tasks/e2e-simple.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ yarn
8686

8787
# Start local registry
8888
tmp_registry_log=`mktemp`
89-
nohup npx verdaccio@2.7.2 -c tasks/verdaccio.yaml &>$tmp_registry_log &
89+
nohup npx verdaccio@3.2.0 -c tasks/verdaccio.yaml &>$tmp_registry_log &
9090
# Wait for `verdaccio` to boot
9191
grep -q 'http address' <(tail -f $tmp_registry_log)
9292

@@ -95,7 +95,7 @@ npm set registry "$custom_registry_url"
9595
yarn config set registry "$custom_registry_url"
9696

9797
# Login so we can publish packages
98-
npx npm-cli-login@0.0.10 -u user -p password -e user@example.com -r "$custom_registry_url" --quotes
98+
(cd && npx npm-auth-to-token@1.0.0 -u user -p password -e user@example.com -r "$custom_registry_url")
9999

100100
# Lint own code
101101
./node_modules/.bin/eslint --max-warnings 0 packages/babel-preset-react-app/

tasks/verdaccio.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#
2-
# This is the default config file. It allows all users to do anything,
3-
# so don't use it on production systems.
2+
# This is based on verdaccio's default config file. It allows all users
3+
# to do anything, so don't use it on production systems.
44
#
55
# Look here for more config file examples:
66
# https://github.com/verdaccio/verdaccio/tree/master/conf
@@ -25,7 +25,7 @@ packages:
2525
'@*/*':
2626
# scoped packages
2727
access: $all
28-
publish: $ll
28+
publish: $all
2929
proxy: npmjs
3030

3131
'**':

0 commit comments

Comments
 (0)