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
github.proxy not worked? #863
Comments
Interesting. Could you please open a PR with this fix? Maybe there has been an update in |
dgcofer
added a commit
to dgcofer/release-it
that referenced
this issue
Apr 14, 2022
Based on a recent change in Octokits docs[1], in order for it to use a configured proxy you must pass another request.agent into the Octokit constructor. This change adds the `proxy-agent` lib as suggested by Octokits docs. Note that with this implmentation, the `http_proxy` or `https_proxy` environment variables alone will NOT work. Instead one must explicitly set the value in the `github.proxy` option passed to release-it. This is to stay inline with current behavior[2]. [1] octokit/octokit.js@2090c85 [2] https://github.com/release-it/release-it/blob/14.14.2/docs/github-releases.md#proxy
webpro
pushed a commit
that referenced
this issue
Apr 14, 2022
Based on a recent change in Octokits docs[1], in order for it to use a configured proxy you must pass another request.agent into the Octokit constructor. This change adds the `proxy-agent` lib as suggested by Octokits docs. Note that with this implmentation, the `http_proxy` or `https_proxy` environment variables alone will NOT work. Instead one must explicitly set the value in the `github.proxy` option passed to release-it. This is to stay inline with current behavior[2]. [1] octokit/octokit.js@2090c85 [2] https://github.com/release-it/release-it/blob/14.14.2/docs/github-releases.md#proxy
@webpro thx, you have fixed the bug in new version. :) // 1. Add proxy to `.release-it.json`
// 2. ./node_modules/release-it/lib/plugin/github/GitHub.js
// 3. const prompts = require('./prompts'); ---> const ProxyAgent = require('proxy-agent');
// 4. options.proxy = proxy; ---> options.request.agent = new ProxyAgent(proxy);
// 5. add proxy to package.json |
@webpro thanks, I have installed(v14.14.3) it in my project, it worked! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
proxy
my case
The text was updated successfully, but these errors were encountered: