Skip to content

Commit 033b5e5

Browse files
This fixes publishing to npm (#753)
* This fixes publishing to npm * Remove unneeded npm pkg * Add dry run back
1 parent 0f3a893 commit 033b5e5

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" > ~/repo/.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" > ~/repo/.npmrc
41+
- run: npm publish --access public
4442
deploy_demo:
4543
docker:
4644
- image: circleci/node:12-browsers

0 commit comments

Comments
 (0)