Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Publish fail, despite valid NPM token #232

Closed
tay1orjones opened this issue Dec 10, 2019 · 3 comments
Closed

Publish fail, despite valid NPM token #232

tay1orjones opened this issue Dec 10, 2019 · 3 comments

Comments

@tay1orjones
Copy link

Current behavior

Release is failing citing an invalid npm token using version 16.0.0-beta.39.

Messages from the build
EINVALIDNPMTOKEN Invalid npm token.
and
npm ERR! Cannot read property 'objectMode' of undefined

The token is valid and was working on version 16.0.0-beta.19. After upgrading, it is not working.
I've ensured my account uses the appropriate auth-only 2fa.

Expected behavior

The release succeeds.

Environment

  • semantic-release version: 16.0.0-beta.39
  • CI environment: Travis CI
  • Plugins used: only the defaults
  • semantic-release configuration: default configuration
  • CI logs: successful build, but the publish failed - carbon-addons-iot-react/builds/623343466
@pvdlg
Copy link
Member

pvdlg commented Dec 11, 2019

See #215

This is due to outdated sub-dependencies enforced by your yarn.lock. I don't know which one exactly though.

@pvdlg
Copy link
Member

pvdlg commented Dec 11, 2019

Duplicate of #215

@pvdlg pvdlg marked this as a duplicate of #215 Dec 11, 2019
@pvdlg pvdlg transferred this issue from semantic-release/semantic-release Dec 11, 2019
@tay1orjones
Copy link
Author

Thanks! This does seem to be the case.

Instead of deleting yarn.lock and regenerating it, I ran yarn remove semantic-release. Then reverted the changes to package.json(effectively re-adding semantic-release as a dep), then ran yarn install.

This left me with only changes to yarn.lock, which did show some outdated deps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants