Skip to content
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

follow proxy settings #105

Merged
merged 37 commits into from
Jan 27, 2020
Merged

follow proxy settings #105

merged 37 commits into from
Jan 27, 2020

Conversation

ericsciple
Copy link
Collaborator

No description provided.

- name: Verify node version
run: __tests__/verify-node-version.sh 10

test-proxy:
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

proxy e2e

lib/installer.js Outdated Show resolved Hide resolved
"@actions/io": "^1.0.0",
"@actions/tool-cache": "^1.0.0",
"typed-rest-client": "^1.5.0",
"@actions/core": "^1.2.2",
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i updated all the toolkit packages

let rest: restm.RestClient = new restm.RestClient('setup-node');
let nodeVersions: INodeVersion[] =
(await rest.get<INodeVersion[]>(dataUrl)).result || [];
let httpClient = new hc.HttpClient('setup-node', [], {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i added retries here when downloading the versions JSON

further below when the exe is downloaded, toolCache.downloadTool already has retries built-in

@ericsciple ericsciple changed the title [draft] follow proxy settings follow proxy settings Jan 24, 2020
version: 10.x
- uses: actions/checkout@v2

- name: Setup node 12
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. I had this on my TODO list to update ;)

@bryanmacfarlane
Copy link
Member

the code changes LGTM.

However, as I review the changes and see the endless node_modules diffs, I wonder if we just shouldn't do the ncc build as part of this change. I think we should do the change, point v1 at the sha in master and get rid of the releases/v1 tag from that alternative approach (but ensure anyone binding to a sha matches)

"jest": "^24.8.0",
"jest-circus": "^24.7.1",
"prettier": "^1.17.1",
"ts-jest": "^24.0.2",
"typescript": "^3.5.1"
},
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah!

@bryanmacfarlane
Copy link
Member

LGTM - I have some thoughts about pack vs build but let's take as a separate discussion.

package.json Outdated
@@ -3,12 +3,14 @@
"version": "1.0.0",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bump version?

@ericsciple
Copy link
Collaborator Author

@bryanmacfarlane are you suggesting npm run build should tsc && ncc build? i like that

@ericsciple
Copy link
Collaborator Author

actually i forgot, should format happen before pack. i wonder if npm run all should format before build. Then it would be ok to combine pack and build.

@ericsciple ericsciple merged commit d123f10 into master Jan 27, 2020
@ericsciple ericsciple deleted the users/ericsciple/m165proxy branch January 27, 2020 15:37
Copy link

@meandmyfuture2020 meandmyfuture2020 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

::

deining pushed a commit to deining/setup-node that referenced this pull request Nov 9, 2023
* docs: update README.md [skip ci]

* docs: update .all-contributorsrc [skip ci]

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants