feat: support private mirrors (#1240)
e2e-cache / Test npm (Node ${{ matrix.node-version}}, ${{ matrix.os }}) (22, macos-13) (push) Waiting to run
e2e-cache / Test npm (Node ${{ matrix.node-version}}, ${{ matrix.os }}) (22, macos-latest) (push) Waiting to run
e2e-cache / Test npm (Node ${{ matrix.node-version}}, ${{ matrix.os }}) (18, macos-13) (push) Waiting to run
e2e-cache / Test npm (Node ${{ matrix.node-version}}, ${{ matrix.os }}) (18, macos-latest) (push) Waiting to run
e2e-cache / Test npm (Node ${{ matrix.node-version}}, ${{ matrix.os }}) (18, windows-latest) (push) Waiting to run
e2e-cache / Test npm (Node ${{ matrix.node-version}}, ${{ matrix.os }}) (20, macos-13) (push) Waiting to run
e2e-cache / Test npm (Node ${{ matrix.node-version}}, ${{ matrix.os }}) (20, macos-latest) (push) Waiting to run
e2e-cache / Test npm (Node ${{ matrix.node-version}}, ${{ matrix.os }}) (20, windows-latest) (push) Waiting to run
e2e-cache / Test npm (Node ${{ matrix.node-version}}, ${{ matrix.os }}) (22, windows-latest) (push) Waiting to run
Basic validation / Basic validation (push) Failing after 0s
e2e-cache / Test pnpm (Node ${{ matrix.node-version}}, ${{ matrix.os }}) (18, macos-latest) (push) Waiting to run
e2e-cache / Test yarn 1 (Node ${{ matrix.node-version}}, ${{ matrix.os }}) (18, windows-latest) (push) Waiting to run
e2e-cache / Test yarn 1 (Node ${{ matrix.node-version}}, ${{ matrix.os }}) (20, macos-13) (push) Waiting to run
e2e-cache / Test yarn 1 (Node ${{ matrix.node-version}}, ${{ matrix.os }}) (20, macos-latest) (push) Waiting to run
e2e-cache / Test yarn 3 (Node ${{ matrix.node-version}}, ${{ matrix.os }}) (18, windows-latest) (push) Waiting to run
e2e-cache / Test yarn 3 (Node ${{ matrix.node-version}}, ${{ matrix.os }}) (20, macos-13) (push) Waiting to run
e2e-cache / Test yarn 3 (Node ${{ matrix.node-version}}, ${{ matrix.os }}) (20, macos-latest) (push) Waiting to run
e2e-cache / Test yarn 3 (Node ${{ matrix.node-version}}, ${{ matrix.os }}) (20, windows-latest) (push) Waiting to run
e2e-cache / Test yarn 3 (Node ${{ matrix.node-version}}, ${{ matrix.os }}) (22, macos-13) (push) Waiting to run
e2e-cache / Test yarn 3 (Node ${{ matrix.node-version}}, ${{ matrix.os }}) (22, macos-latest) (push) Waiting to run
e2e-cache / Test yarn 3 (Node ${{ matrix.node-version}}, ${{ matrix.os }}) (22, windows-latest) (push) Waiting to run
versions / nightly-syntax (18.0.0-nightly, windows-latest) (push) Waiting to run
versions / nightly-syntax (20-nightly, macos-latest) (push) Waiting to run
versions / rc-syntax (18.0.0-rc.2, windows-latest) (push) Waiting to run
versions / rc-syntax (19.0.0-rc.0, macos-13) (push) Waiting to run
versions / rc-syntax (19.0.0-rc.0, macos-latest) (push) Waiting to run
e2e-cache / Test pnpm (Node ${{ matrix.node-version}}, ${{ matrix.os }}) (18, macos-13) (push) Waiting to run
e2e-cache / Test pnpm (Node ${{ matrix.node-version}}, ${{ matrix.os }}) (18, windows-latest) (push) Waiting to run
e2e-cache / Test pnpm (Node ${{ matrix.node-version}}, ${{ matrix.os }}) (20, macos-13) (push) Waiting to run
e2e-cache / Test pnpm (Node ${{ matrix.node-version}}, ${{ matrix.os }}) (20, macos-latest) (push) Waiting to run
e2e-cache / Test pnpm (Node ${{ matrix.node-version}}, ${{ matrix.os }}) (20, windows-latest) (push) Waiting to run
e2e-cache / Test pnpm (Node ${{ matrix.node-version}}, ${{ matrix.os }}) (22, macos-13) (push) Waiting to run
e2e-cache / Test pnpm (Node ${{ matrix.node-version}}, ${{ matrix.os }}) (22, macos-latest) (push) Waiting to run
e2e-cache / Test pnpm (Node ${{ matrix.node-version}}, ${{ matrix.os }}) (22, windows-latest) (push) Waiting to run
e2e-cache / Test yarn 1 (Node ${{ matrix.node-version}}, ${{ matrix.os }}) (18, macos-13) (push) Waiting to run
e2e-cache / Test yarn 1 (Node ${{ matrix.node-version}}, ${{ matrix.os }}) (18, macos-latest) (push) Waiting to run
e2e-cache / Test yarn 1 (Node ${{ matrix.node-version}}, ${{ matrix.os }}) (20, windows-latest) (push) Waiting to run
e2e-cache / Test yarn 3 (Node ${{ matrix.node-version}}, ${{ matrix.os }}) (18, macos-13) (push) Waiting to run
e2e-cache / Test yarn 3 (Node ${{ matrix.node-version}}, ${{ matrix.os }}) (18, macos-latest) (push) Waiting to run
Check dist / Check dist/ (push) Failing after 0s
versions / lts-syntax (lts/dubnium, windows-latest) (push) Waiting to run
versions / lts-syntax (lts/erbium, macos-13) (push) Waiting to run
versions / lts-syntax (lts/erbium, windows-latest) (push) Waiting to run
versions / lts-syntax (lts/fermium, macos-13) (push) Waiting to run
versions / lts-syntax (lts/fermium, windows-latest) (push) Waiting to run
versions / v8-canary-syntax (20-v8-canary, macos-13) (push) Waiting to run
versions / v8-canary-syntax (20-v8-canary, macos-latest) (push) Waiting to run
versions / v8-canary-syntax (20-v8-canary, windows-latest) (push) Waiting to run
versions / v8-canary-syntax (20.0.0-v8-canary, macos-13) (push) Waiting to run
versions / v8-canary-syntax (20.0.0-v8-canary, macos-latest) (push) Waiting to run
versions / v8-canary-syntax (20.0.0-v8-canary, windows-latest) (push) Waiting to run
versions / v8-canary-syntax (20.0.0-v8-canary20221101e50e45c9f8, macos-13) (push) Waiting to run
versions / v8-canary-syntax (20.0.0-v8-canary20221101e50e45c9f8, macos-latest) (push) Waiting to run
versions / v8-canary-syntax (20.0.0-v8-canary20221101e50e45c9f8, windows-latest) (push) Waiting to run
versions / nightly-syntax (18.0.0-nightly, macos-13) (push) Waiting to run
versions / nightly-syntax (18.0.0-nightly, macos-latest) (push) Waiting to run
versions / nightly-syntax (20-nightly, macos-13) (push) Waiting to run
versions / nightly-syntax (20-nightly, windows-latest) (push) Waiting to run
versions / nightly-syntax (21-nightly, macos-13) (push) Waiting to run
versions / nightly-syntax (21-nightly, macos-latest) (push) Waiting to run
versions / nightly-syntax (21-nightly, windows-latest) (push) Waiting to run
versions / rc-syntax (18.0.0-rc.2, macos-13) (push) Waiting to run
versions / rc-syntax (18.0.0-rc.2, macos-latest) (push) Waiting to run
CodeQL analysis / CodeQL analysis (push) Failing after 0s
versions / version-file (.nvmrc, windows-latest) (push) Waiting to run
versions / version-file (.tool-versions, macos-13) (push) Waiting to run
versions / version-file (.tool-versions, macos-latest) (push) Waiting to run
e2e-cache / Test npm (Node ${{ matrix.node-version}}, ${{ matrix.os }}) (18, ubuntu-latest) (push) Failing after 0s
versions / lts-syntax (lts/-1, windows-latest) (push) Waiting to run
versions / lts-syntax (lts/dubnium, macos-13) (push) Waiting to run
e2e-cache / Test npm (Node ${{ matrix.node-version}}, ${{ matrix.os }}) (20, ubuntu-latest) (push) Failing after 0s
versions / node-latest-aliases (latest, macos-latest) (push) Waiting to run
versions / node-latest-aliases (node, windows-latest) (push) Waiting to run
e2e-cache / Test npm (Node ${{ matrix.node-version}}, ${{ matrix.os }}) (22, ubuntu-latest) (push) Failing after 0s
e2e-cache / Test pnpm (Node ${{ matrix.node-version}}, ${{ matrix.os }}) (20, ubuntu-latest) (push) Failing after 0s
e2e-cache / Test pnpm (Node ${{ matrix.node-version}}, ${{ matrix.os }}) (22, ubuntu-latest) (push) Failing after 0s
versions / rc-syntax (19.0.0-rc.0, windows-latest) (push) Waiting to run
versions / rc-syntax (20.0.0-rc.1, macos-13) (push) Waiting to run
versions / rc-syntax (20.0.0-rc.1, macos-latest) (push) Waiting to run
versions / rc-syntax (20.0.0-rc.1, windows-latest) (push) Waiting to run
versions / manifest (18.20.0, macos-13) (push) Waiting to run
versions / manifest (18.20.0, macos-latest) (push) Waiting to run
versions / manifest (18.20.0, windows-latest) (push) Waiting to run
versions / manifest (20.10.0, macos-13) (push) Waiting to run
versions / manifest (20.10.0, macos-latest) (push) Waiting to run
versions / manifest (20.10.0, windows-latest) (push) Waiting to run
versions / manifest (22.0.0, macos-13) (push) Waiting to run
versions / manifest (22.0.0, macos-latest) (push) Waiting to run
versions / manifest (22.0.0, windows-latest) (push) Waiting to run
versions / check-latest (18, macos-13) (push) Waiting to run
versions / check-latest (18, macos-latest) (push) Waiting to run
versions / check-latest (18, windows-latest) (push) Waiting to run
versions / check-latest (20, macos-13) (push) Waiting to run
versions / check-latest (20, macos-latest) (push) Waiting to run
versions / check-latest (20, windows-latest) (push) Waiting to run
versions / check-latest (22, macos-13) (push) Waiting to run
versions / check-latest (22, macos-latest) (push) Waiting to run
versions / check-latest (22, windows-latest) (push) Waiting to run
versions / version-file (.nvmrc, macos-13) (push) Waiting to run
versions / version-file (.nvmrc, macos-latest) (push) Waiting to run
versions / version-file (.tool-versions, windows-latest) (push) Waiting to run
versions / version-file (.tool-versions-node, macos-13) (push) Waiting to run
versions / version-file (.tool-versions-node, macos-latest) (push) Waiting to run
versions / version-file (.tool-versions-node, windows-latest) (push) Waiting to run
versions / version-file (package.json, macos-13) (push) Waiting to run
versions / version-file (package.json, macos-latest) (push) Waiting to run
versions / version-file (package.json, windows-latest) (push) Waiting to run
versions / version-file-volta (macos-13) (push) Waiting to run
versions / version-file-volta (macos-latest) (push) Waiting to run
versions / version-file-volta (windows-latest) (push) Waiting to run
versions / version-file-volta-extends (macos-13) (push) Waiting to run
versions / version-file-volta-extends (macos-latest) (push) Waiting to run
versions / version-file-volta-extends (windows-latest) (push) Waiting to run
versions / node-dist (17, macos-13) (push) Waiting to run
versions / node-dist (17, macos-latest) (push) Waiting to run
versions / node-dist (17, windows-latest) (push) Waiting to run
versions / node-dist (19, macos-13) (push) Waiting to run
versions / node-dist (19, macos-latest) (push) Waiting to run
versions / node-dist (19, windows-latest) (push) Waiting to run
versions / old-versions (macos-13) (push) Waiting to run
versions / old-versions (windows-latest) (push) Waiting to run
versions / arch (push) Waiting to run
versions / local-cache (18, macos-13) (push) Waiting to run
versions / local-cache (18, macos-latest) (push) Waiting to run
versions / local-cache (18, windows-latest) (push) Waiting to run
versions / local-cache (20, macos-13) (push) Waiting to run
versions / local-cache (20, macos-latest) (push) Waiting to run
versions / local-cache (20, windows-latest) (push) Waiting to run
versions / local-cache (22, macos-13) (push) Waiting to run
versions / local-cache (22, macos-latest) (push) Waiting to run
versions / local-cache (22, windows-latest) (push) Waiting to run
versions / lts-syntax (lts/*, macos-13) (push) Waiting to run
versions / lts-syntax (lts/*, windows-latest) (push) Waiting to run
versions / lts-syntax (lts/-1, macos-13) (push) Waiting to run
versions / node-latest-aliases (current, macos-13) (push) Waiting to run
versions / node-latest-aliases (current, macos-latest) (push) Waiting to run
versions / node-latest-aliases (current, windows-latest) (push) Waiting to run
versions / node-latest-aliases (latest, macos-13) (push) Waiting to run
versions / node-latest-aliases (latest, windows-latest) (push) Waiting to run
versions / node-latest-aliases (node, macos-13) (push) Waiting to run
versions / node-latest-aliases (node, macos-latest) (push) Waiting to run
e2e-cache / Test pnpm (Node ${{ matrix.node-version}}, ${{ matrix.os }}) (18, ubuntu-latest) (push) Failing after 0s
e2e-cache / Test yarn 1 (Node ${{ matrix.node-version}}, ${{ matrix.os }}) (18, ubuntu-latest) (push) Failing after 0s
e2e-cache / Test yarn 1 (Node ${{ matrix.node-version}}, ${{ matrix.os }}) (20, ubuntu-latest) (push) Failing after 0s
e2e-cache / Test yarn 3 (Node ${{ matrix.node-version}}, ${{ matrix.os }}) (22, ubuntu-latest) (push) Failing after 0s
e2e-cache / Test yarn subprojects (22) (push) Failing after 0s
e2e-cache / Test yarn subprojects all locally managed (18) (push) Failing after 0s
e2e-cache / Test yarn subprojects all locally managed (20) (push) Failing after 0s
e2e-cache / Test yarn subprojects all locally managed (22) (push) Failing after 0s
e2e-cache / Test yarn subprojects managed by git (20) (push) Failing after 0s
e2e-cache / Test yarn subprojects managed by git (22) (push) Failing after 0s
Licensed / Licensed (push) Failing after 0s
proxy / test-proxy (push) Failing after 0s
proxy / test-bypass-proxy (push) Failing after 0s
versions / local-cache (18, ubuntu-latest) (push) Failing after 0s
versions / local-cache (20, ubuntu-latest) (push) Failing after 0s
versions / local-cache (22, ubuntu-latest) (push) Failing after 1s
versions / lts-syntax (lts/*, ubuntu-latest) (push) Failing after 0s
versions / lts-syntax (lts/erbium, ubuntu-latest) (push) Failing after 0s
versions / v8-canary-syntax (20.0.0-v8-canary, ubuntu-latest) (push) Failing after 0s
e2e-cache / Test yarn 3 (Node ${{ matrix.node-version}}, ${{ matrix.os }}) (18, ubuntu-latest) (push) Failing after 0s
e2e-cache / Test yarn 3 (Node ${{ matrix.node-version}}, ${{ matrix.os }}) (20, ubuntu-latest) (push) Failing after 0s
e2e-cache / Test yarn subprojects (18) (push) Failing after 1s
e2e-cache / Test yarn subprojects (20) (push) Failing after 0s
e2e-cache / Test yarn subprojects some locally managed (18) (push) Failing after 0s
e2e-cache / Test yarn subprojects some locally managed (20) (push) Failing after 0s
e2e-cache / Test yarn subprojects some locally managed (22) (push) Failing after 0s
e2e-cache / Test yarn subprojects managed by git (18) (push) Failing after 0s
versions / lts-syntax (lts/-1, ubuntu-latest) (push) Failing after 0s
versions / lts-syntax (lts/dubnium, ubuntu-latest) (push) Failing after 0s
versions / lts-syntax (lts/fermium, ubuntu-latest) (push) Failing after 0s
versions / v8-canary-syntax (20-v8-canary, ubuntu-latest) (push) Failing after 0s
versions / v8-canary-syntax (20.0.0-v8-canary20221101e50e45c9f8, ubuntu-latest) (push) Failing after 0s
versions / nightly-syntax (18.0.0-nightly, ubuntu-latest) (push) Failing after 0s
versions / nightly-syntax (20-nightly, ubuntu-latest) (push) Failing after 0s
versions / nightly-syntax (21-nightly, ubuntu-latest) (push) Failing after 0s
versions / rc-syntax (18.0.0-rc.2, ubuntu-latest) (push) Failing after 0s
versions / rc-syntax (19.0.0-rc.0, ubuntu-latest) (push) Failing after 0s
versions / manifest (18.20.0, ubuntu-latest) (push) Failing after 0s
versions / rc-syntax (20.0.0-rc.1, ubuntu-latest) (push) Failing after 0s
versions / manifest (20.10.0, ubuntu-latest) (push) Failing after 0s
versions / manifest (22.0.0, ubuntu-latest) (push) Failing after 0s
versions / check-latest (22, ubuntu-latest) (push) Failing after 0s
versions / version-file (.nvmrc, ubuntu-latest) (push) Failing after 0s
versions / version-file (.tool-versions-node, ubuntu-latest) (push) Failing after 0s
versions / version-file (package.json, ubuntu-latest) (push) Failing after 1s
versions / version-file-volta (ubuntu-latest) (push) Failing after 0s
versions / check-latest (18, ubuntu-latest) (push) Failing after 1s
versions / check-latest (20, ubuntu-latest) (push) Failing after 0s
versions / version-file (.tool-versions, ubuntu-latest) (push) Failing after 0s
versions / version-file-volta-extends (ubuntu-latest) (push) Failing after 0s
versions / node-dist (19, ubuntu-latest) (push) Failing after 0s
versions / node-dist (17, ubuntu-latest) (push) Failing after 1s
versions / old-versions (ubuntu-latest) (push) Failing after 0s
versions / node-latest-aliases (current, ubuntu-latest) (push) Failing after 1s
versions / node-latest-aliases (latest, ubuntu-latest) (push) Failing after 0s
versions / node-latest-aliases (node, ubuntu-latest) (push) Failing after 0s

* feat: support private mirrors

* chore: change fallback message with mirrors
This commit is contained in:
Marco Ippolito
2025-04-02 10:49:47 -05:00
committed by GitHub
parent 40337cb8f7
commit e3ce749e20
14 changed files with 322 additions and 44 deletions
+15
View File
@@ -418,3 +418,18 @@ Please refer to the [Ensuring workflow access to your package - Configuring a pa
### always-auth input
The always-auth input sets `always-auth=true` in .npmrc file. With this option set [npm](https://docs.npmjs.com/cli/v6/using-npm/config#always-auth)/yarn sends the authentication credentials when making a request to the registries.
## Use private mirror
It is possible to use a private mirror hosting Node.js binaries. This mirror must be a full mirror of the official Node.js distribution.
The mirror URL can be set using the `mirror` input.
It is possible to specify a token to authenticate with the mirror using the `mirror-token` input.
The token will be passed as a bearer token in the `Authorization` header.
```yaml
- uses: actions/setup-node@v4
with:
node-version: '14.x'
mirror: 'https://nodejs.org/dist'
mirror-token: 'your-mirror-token'
```