From 7e8a97c59b62b18b45c34a403b3e53d6fc92e6dc Mon Sep 17 00:00:00 2001 From: Taylor Dawson Date: Fri, 3 Dec 2021 13:02:31 -0800 Subject: [PATCH] Fix npm publishing (#160) --- .circleci/config.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index a44eb8d..84946bb 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: ls -al - run: pwd @@ -47,9 +46,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 /root/project/dist/iife/index.js - run: mv /root/project/dist/iife/index.js.gz /root/project/dist/iife/index.js - run: ls -al