Skip to content

Support node.js mirror like nvm #730

Closed
@thomas-z-meyer-db

Description

@thomas-z-meyer-db

Description:
Support alternate nodejs download mirror like nvm

nvm does support setting a mirror via environment variable, e.g:
NVM_NODEJS_ORG_MIRROR=https://artifactory.company.com/artifactory/node-dist/

setup-node should also support a similar option "mirror" to specify an alternate node.js base URL for downloading the node.js binaries.

Justification:
All node.js binaries are downloaded directly from the internet via a specified proxy in the github action runners environment, which created egress costs for self-hosted github action runners in GHEC.

By using mirror option the reliance on node.js site is decoupled and egress is saved.

Are you willing to submit a PR?
i think i'm not allowed...

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestNew feature or request to improve the current logic

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions