You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: action.yml
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -25,6 +25,10 @@ inputs:
25
25
description: 'Used to specify a package manager for caching in the default directory. Supported values: npm, yarn, pnpm.'
26
26
cache-dependency-path:
27
27
description: 'Used to specify the path to a dependency file: package-lock.json, yarn.lock, etc. Supports wildcards or a list of file names for caching multiple dependencies.'
28
+
mirror:
29
+
description: 'Used to specify an alternative mirror to downlooad Node.js binaries from'
30
+
mirror-token:
31
+
description: 'The token used as Authorization header when fetching from the mirror'
28
32
# TODO: add input to control forcing to pull from cloud or dist.
29
33
# escape valve for someone having issues or needing the absolute latest which isn't cached yet
Copy file name to clipboardExpand all lines: docs/advanced-usage.md
+15Lines changed: 15 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -418,3 +418,18 @@ Please refer to the [Ensuring workflow access to your package - Configuring a pa
418
418
419
419
### always-auth input
420
420
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.
421
+
422
+
## Use private mirror
423
+
424
+
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.
425
+
The mirror URL can be set using the `mirror` input.
426
+
It is possible to specify a token to authenticate with the mirror using the `mirror-token` input.
427
+
The token will be passed as a bearer token in the `Authorization` header.
0 commit comments