Closed marcellourbani closed 2 years ago
Hi @marcellourbani ,
big sorry for replying that late to your issue.
The API limit happens when using the Octokit API without a GitHub auth token. Unfortunately, the GitHub auth token cannot be easily used in the postinstall.js
. One option I can see is to use the GitHub auth token from the NPM configuration, e.g.:
npm config set easy-ui5_ghAuthToken=XXX
This could be used to also ensure that a GitHub auth token is used in the postinstall.js
. It would require a little extension to the generator.
Best regards, Peter
Thanks @petermuessig I didn't know about npm config, thanks! Might warrant a line in README
@marcellourbani - this only works for the usage of the generator but it is not yet considered for the postinstall.js. This needs to be added there.
I'll keep the issue open to follow up on that.
My CI builds started failing today because:
post install is hitting github which has a 60 request per hour rate limit on unauthenticated PI calls (generators/app/postinstall.js)
I fixed it removing it as a dependency, leaving this message for posterity