Skip to content

Commit f124281

Browse files
Merge pull request #754 from blocknative/develop
Fix NPM Publish Error
2 parents 94b34c6 + ec90667 commit f124281

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

.circleci/config.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,7 @@ jobs:
2626
- run: sudo apt update && sudo apt install awscli
2727
- run: yarn
2828
- run: yarn build
29-
- run: sudo npm i -g npm-cli-login
30-
- run: NPM_USER=$NPM_USERNAME NPM_EMAIL=$NPM_EMAIL NPM_PASS=$NPM_PASSWORD npm-cli-login
29+
- run: echo "//registry.npmjs.org/:_authToken=$npm_TOKEN" > .npmrc
3130
- run: npm publish --dry-run
3231
deploy_prod:
3332
docker:
@@ -38,9 +37,8 @@ jobs:
3837
- run: sudo apt update && sudo apt install awscli
3938
- run: yarn
4039
- run: yarn build
41-
- run: sudo npm i -g add npm-cli-login
42-
- run: NPM_USER=$NPM_USERNAME NPM_EMAIL=$NPM_EMAIL NPM_PASS=$NPM_PASSWORD npm-cli-login
43-
- run: npm publish
40+
- run: echo "//registry.npmjs.org/:_authToken=$npm_TOKEN" > .npmrc
41+
- run: npm publish --access public
4442
deploy_demo:
4543
docker:
4644
- image: circleci/node:12-browsers

0 commit comments

Comments
 (0)