Open benkim0414 opened 3 years ago
This is the log after I ran lerna publish
command. It always works fine.
➜ apis git:(master) yarn lerna publish minor
yarn run v1.22.4
$ /Users/ben/workspace/apis/node_modules/.bin/lerna publish minor
lerna info version 2.11.0
lerna info versioning independent
lerna info Checking for updated packages...
lerna info Comparing with @green-energy-trading/certificates@1.1.0.
lerna info Checking for prereleased packages...
Changes:
- @green-energy-trading/contacts: 1.0.0 => 1.1.0
? Are you sure you want to publish the above changes? Yes
lerna info publish Publishing packages to npm...
lerna info published @green-energy-trading/contacts
lerna info git Pushing tags...
Enter passphrase for key '/Users/ben/.ssh/id_rsa':
Successfully published:
- @green-energy-trading/contacts@1.1.0
lerna success publish finished
✨ Done in 11.71s.
This is the reason why I think the access token is correct.
And this is my .npmrc
for my monorepo.
//npm.pkg.github.com/:_authToken=GH_TOKEN
@green-energy-trading:registry=https://npm.pkg.github.com
Hello guys.
First of all, very thank you for contributing to this great project. I have a monorepo to manage our company APIs. And I'm trying to configure
lerna
andlerna-semantic-release
to automate publishing packages to GitHub package registry. However, it keeps giving me an unauthorized error but I'm pretty sure the environment variables such asNPM_TOKEN
andGH_TOKEN
are correct.Please let me know if I misconfigure something or you have any suspicious things. Any help would be very appreciated.