cheminfo / mass-tools

Various projects dealing with molecular formula
https://cheminfo.github.io/mass-tools/
MIT License
8 stars 0 forks source link

Can not publish with lerna #20

Closed lpatiny closed 3 years ago

lpatiny commented 3 years ago

https://github.com/cheminfo/mass-tools/runs/2096380850?check_suite_focus=true#step:9:45

Lerna does not have the credentials to publish the package

Before it was complaining that github was not configured and I added the following lines but this seems suspicious:

https://github.com/cheminfo/mass-tools/blob/master/.github/workflows/release.yml#L31-L34

@targos Please could you help me ?

targos commented 3 years ago

The issue is that npm automation tokens do not work with the whoami endpoint that Lerna uses. It seems that a solution would be to run lerna with --no-verify-access so it doesn't call that endpoint before publishing.

targos commented 3 years ago

Ref: https://github.com/lerna/lerna/issues/2788

lpatiny commented 3 years ago

Great it works. Thanks !!