diff options
author | Alex Browne <stephenalexbrowne@gmail.com> | 2018-08-23 07:40:10 +0800 |
---|---|---|
committer | Alex Browne <stephenalexbrowne@gmail.com> | 2018-08-23 07:40:10 +0800 |
commit | 2de7a49000362cb04707da0d9f48465855635a27 (patch) | |
tree | c6cf645e2be7cfec2a85f4dccfbac70a52993f70 /package.json | |
parent | cb19623a3aaf22a386bd4a7d6477048a604be9a2 (diff) | |
download | dexon-sol-tools-2de7a49000362cb04707da0d9f48465855635a27.tar dexon-sol-tools-2de7a49000362cb04707da0d9f48465855635a27.tar.gz dexon-sol-tools-2de7a49000362cb04707da0d9f48465855635a27.tar.bz2 dexon-sol-tools-2de7a49000362cb04707da0d9f48465855635a27.tar.lz dexon-sol-tools-2de7a49000362cb04707da0d9f48465855635a27.tar.xz dexon-sol-tools-2de7a49000362cb04707da0d9f48465855635a27.tar.zst dexon-sol-tools-2de7a49000362cb04707da0d9f48465855635a27.zip |
fix: Make non-interactive npm login for publish tests more robust
Diffstat (limited to 'package.json')
-rw-r--r-- | package.json | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/package.json b/package.json index fa93108c2..15961229e 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,7 @@ "test:installation": "node ./packages/monorepo-scripts/lib/test_installation.js", "test:installation:local": "IS_LOCAL_PUBLISH=true node ./packages/monorepo-scripts/lib/test_installation.js", "test:publish:circleci:comment": "HACK(albrow) We need an automated way to login to npm and echo+sleep piped to stdin was the only way I could find to do it.", - "test:publish:circleci": "{ echo \"test\"; sleep 2; echo \"test\"; sleep 2; echo \"test@example.com\"; } | npm login --registry=http://localhost:4873 && IS_LOCAL_PUBLISH=true run-s script:publish test:installation:local", + "test:publish:circleci": "yarn npm-cli-login -u test -p test -e test@example.com -r http://localhost:4873 && IS_LOCAL_PUBLISH=true run-s script:publish test:installation:local", "run:publish": "run-s install:all build:monorepo_scripts script:prepublish_checks rebuild:no_website script:publish", "run:publish:local": "IS_LOCAL_PUBLISH=true yarn run:publish", "script:prepublish_checks": "node ./packages/monorepo-scripts/lib/prepublish_checks.js", @@ -45,6 +45,7 @@ "coveralls": "^3.0.0", "ganache-cli": "6.1.3", "lcov-result-merger": "^3.0.0", + "npm-cli-login": "^0.0.10", "npm-run-all": "^4.1.2", "prettier": "^1.11.1", "source-map-support": "^0.5.6", |