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

publishing fails with NPM automation token #2141

Closed
mrtnbroder opened this issue Jan 26, 2022 · 7 comments
Closed

publishing fails with NPM automation token #2141

mrtnbroder opened this issue Jan 26, 2022 · 7 comments
Labels
bug Something isn't working

Comments

@mrtnbroder
Copy link

Describe the bug

I've setup an NPM Automation Token to allow auto to publish to npm, however, it looks like there is (still) an issue with lerna publish maybe missing --no-verify-access?

This is the workflow failing:

https://github.com/unperfekt/auto-poc/runs/4958992908?check_suite_focus=true

lerna notice cli v4.0.0
lerna info versioning independent
lerna info ci enabled
lerna WARN Unable to determine published version, assuming "@unperfekt/test-package-auto-poc-b" unpublished.
lerna WARN Unable to determine published version, assuming "@unperfekt/test-package-auto-poc-a" unpublished.
lerna info auto-confirmed 
lerna info publish Publishing packages to npm...
lerna info Verifying npm credentials
lerna http fetch GET 403 https://registry.npmjs.org/-/npm/v1/user 78ms
403 Forbidden - GET https://registry.npmjs.org/-/npm/v1/user
lerna ERR! EWHOAMI Authentication error. Use `npm whoami` to troubleshoot.

    at ChildProcess.<anonymous> (/home/runner/work/auto-poc/auto-poc/node_modules/@auto-it/core/dist/utils/exec-promise.js:58:31)
    at ChildProcess.emit (node:events:390:28)
    at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12)Error
    at Object.execPromise (/home/runner/work/auto-poc/auto-poc/node_modules/@auto-it/core/dist/utils/exec-promise.js:15:22)
    at /home/runner/work/auto-poc/auto-poc/node_modules/@auto-it/npm/dist/index.js:944:30
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Versions I'm using:

"devDependencies": {
    "auto": "^10.32.6",
    "lerna": "^4.0.0"
  },

you can also just clone the repo and take a look at it yourself: https://github.com/unperfekt/auto-poc

  • make sure you pass an ci automation NPM_TOKEN
  • make sure you edit the packge names to be able to publish
@mrtnbroder mrtnbroder added the bug Something isn't working label Jan 26, 2022
@hydrosquall
Copy link
Contributor

We added a few --no-verify-access calls in #2032 , but it's possible I might have missed a spot: have you been able to use this automation token successfully elsewhere (outside of auto)?

@smithki
Copy link

smithki commented Mar 25, 2022

@hydrosquall I'm experiencing this issue as well. The missing --no-verify-access flag appears to be here.

@hipstersmoothie
Copy link
Collaborator

Submit a pr and I can merge it 🏂

karpoff added a commit to karpoff/auto that referenced this issue May 25, 2022
@karpoff
Copy link
Contributor

karpoff commented May 25, 2022

@hipstersmoothie please review this PR
I've checked that this change works locally

karpoff added a commit to karpoff/auto that referenced this issue May 25, 2022
hipstersmoothie added a commit that referenced this issue May 27, 2022
#2141: add missed --no-verify-access for lerna publish
@hydrosquall
Copy link
Contributor

I think this issue can be closed since #2205 shipped - were you able to try out the new version @mrtnbroder ?

@karpoff
Copy link
Contributor

karpoff commented Sep 21, 2022

issue has been fixed

@zephraph
Copy link
Collaborator

zephraph commented Oct 4, 2022

Fixed by #2205.

@zephraph zephraph closed this as completed Oct 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants