cli icon indicating copy to clipboard operation
cli copied to clipboard

no access token supplied

Open cedricdelpoux opened this issue 5 years ago • 10 comments

I tried multiple times to use the script semantic-release-cli setup but every time I get the error:

Screenshot 2020-10-07 at 14 40 29

I also tried to pass npm and github token options semantic-release-cli setup --gh-token=<TOKEN> --npm- token=<TOKEN> but the error is the same:

Screenshot 2020-10-07 at 14 44 26

I also tried to export those tokens on my .bashrc with no luck.

Token are created well on Github and Npm. I verified on the websites.

cedricdelpoux avatar Oct 07 '20 12:10 cedricdelpoux

Same here, I ended up selecting "What CI are you using? Other (prints tokens)" and setting up the tokens at Travis manually.

(I found this actually making more sense as I can now have a single token reused for many Travis CI projects.)

IlyaSemenov avatar Oct 09 '20 10:10 IlyaSemenov

Same here!

CalmJerome avatar Nov 17 '20 14:11 CalmJerome

likely same issue as discussed in https://github.com/semantic-release/cli/issues/345

gr2m avatar Nov 17 '20 17:11 gr2m

It appears, that the support for GitHub tokens instead of user credentials is not finished yet.

semantic-release-cli setup --gh-token=a...z --npm-token=a...f
? What is your npm registry? https://registry.npmjs.org/
? What CI are you using? Travis CI
ERR! semantic-release no access token supplied

What token is semantic-release complaining about?

prantlf avatar Jan 24 '21 13:01 prantlf

I'm also getting ERR! semantic-release no access token supplied even though I provided a token. The current fix doesn't work it seems. Any ETA on a fix?

ashblue avatar Mar 28 '21 00:03 ashblue

Any update on the situation?

gitofdeepanshu avatar May 15 '21 13:05 gitofdeepanshu

Any fix for the issue?

image

smshareef026 avatar May 26 '21 21:05 smshareef026

@smshareef026 if you haven't already and this wasn't just a testing token, I'd recommend deleting this screenshot showing your GitHub Personal Access Token.

matzar avatar Sep 20 '21 13:09 matzar

any update on this?

AhHa45 avatar Jun 16 '22 15:06 AhHa45

A workaround not for everybody, but might help somebody - retain the semantic-release package family, but avoid the semantic-release-cli package.

  1. Migrate your CI/CD pipeline to GitHub Actions
  2. Publish your NPM module using Semantic Release Action

prantlf avatar Jun 16 '22 18:06 prantlf