semantic-release: EINVALIDNPMTOKEN with valid token.

Hey, using the token I have in my local .npmrc file in the NPM_TOKEN environment variable on CircleCI, but I’m getting EINVALIDNPMTOKEN. Running npm whoami locally with that token is working fine.

https://circleci.com/gh/LearningLocker/xapi-service/237

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 41 (19 by maintainers)

Most upvoted comments

Here is the PR for condition-circle https://github.com/bahmutov/condition-circle/pull/5.

Yeah @pvdlg, it works great! 👍

Wow awesome!!! Thanks guys, amazing work as usual, really appreciate it! 👍

I’ll create a PR for the condition-circle plugin later today for other Circle users, if it’s not merged in the next day or so I’ll fork their repo and publish it to npm. In the meantime, I’m using the snippet below.

      - deploy:
          name: Semantic Release
          command: |
            if [ "${CIRCLE_BRANCH}" == "master" ]; then
               yarn semantic-release || true;
            fi