lerna / lerna-changelog

:book: PR-based changelog generator with monorepo support

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Must provide GITHUB_AUTH

Enngage opened this issue · comments

Hi,

Could anyone let me know how can I configure GITHUB_AUTH token? I've been trying various ways, but with no luck.

I'm assuming you saw https://github.com/lerna/lerna-changelog#github-token? What specific step did not work for you?

Thank you for getting back this quickly. Yeah, the thing is I'm not sure where should I place the:

export GITHUB_AUTH="..."

Should I create new file somewhere?

ah, I see. GITHUB_AUTH is an "environment variable". you can find more information on those at e.g. https://en.wikipedia.org/wiki/Environment_variable. how exactly this should be used depends on your operating system. what do you use?

Oh, I'm on Win 10. I'm executing the script via node.js command prompt, so that means I have to add the environmental variable to it? Sorry, I haven't really used this before so I'm a bit newb regarding this.

yeah, exactly. I'm not sure how env vars on Win10 are set, unfortunately, but I'm sure a quick internet search will reveal an answer :)

Okey, sounds good. I'll do some googling about that. Thanks for pointing me in the right direction!

I was able to make it work, though I have one off topic question (that I dont think its worth new issue). When ran lerna-changelog, it didn't create changelog.md file even though it listed my PR correctly. I can copy & paste the result fine, but I was just wondering if this was expected or not.

yes, that is the expected behavior currently. it will only output the changelog for the latest release by default, but not for all of the releases, unless you use --to and --from.