diff --git a/.circleci/config.yml b/.circleci/config.yml index e152098..c10df31 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -25,8 +25,7 @@ jobs: - run: sudo apt update && sudo apt install awscli - run: yarn - run: yarn build - - run: sudo npm i -g npm-cli-login - - run: NPM_USER=$NPM_USERNAME NPM_EMAIL=$NPM_EMAIL NPM_PASS=$NPM_PASSWORD npm-cli-login + - run: echo "//registry.npmjs.org/:_authToken=$npm_TOKEN" > .npmrc - run: npm publish --dry-run - run: gzip -9 ./dist/notify.umd.js - run: mv ./dist/notify.umd.js.gz ./dist/notify.umd.js @@ -45,9 +44,8 @@ jobs: - run: sudo apt update && sudo apt install awscli - run: yarn - run: yarn build - - run: sudo npm i -g add npm-cli-login - - run: NPM_USER=$NPM_USERNAME NPM_EMAIL=$NPM_EMAIL NPM_PASS=$NPM_PASSWORD npm-cli-login - - run: npm publish + - run: echo "//registry.npmjs.org/:_authToken=$npm_TOKEN" > .npmrc + - run: npm publish --access public - run: gzip -9 ./dist/notify.umd.js - run: mv ./dist/notify.umd.js.gz ./dist/notify.umd.js - run: ls -al