|
| 1 | +- uses: actions/setup-node@v6 |
| 2 | + with: |
| 3 | + # Version Spec of the version to use in SemVer notation. |
| 4 | + # It also admits such aliases as lts/*, latest, nightly and canary builds |
| 5 | + # Examples: 12.x, 10.15.1, >=10.15.0, lts/Hydrogen, 16-nightly, latest, node |
| 6 | + node-version: '' |
| 7 | + |
| 8 | + # File containing the version Spec of the version to use. Examples: package.json, .nvmrc, .node-version, .tool-versions. |
| 9 | + # If node-version and node-version-file are both provided the action will use version from node-version. |
| 10 | + node-version-file: '' |
| 11 | + |
| 12 | + # Set this option if you want the action to check for the latest available version |
| 13 | + # that satisfies the version spec. |
| 14 | + # It will only get affect for lts Nodejs versions (12.x, >=10.15.0, lts/Hydrogen). |
| 15 | + # Default: false |
| 16 | + check-latest: false |
| 17 | + |
| 18 | + # Target architecture for Node to use. Examples: x86, x64. Will use system architecture by default. |
| 19 | + # Default: ''. The action use system architecture by default |
| 20 | + architecture: '' |
| 21 | + |
| 22 | + # Used to pull node distributions from https://github.com/actions/node-versions. |
| 23 | + # Since there's a default, this is typically not supplied by the user. |
| 24 | + # When running this action on github.com, the default value is sufficient. |
| 25 | + # When running on GHES, you can pass a personal access token for github.com if you are experiencing rate limiting. |
| 26 | + # |
| 27 | + # We recommend using a service account with the least permissions necessary. Also |
| 28 | + # when generating a new PAT, select the least scopes necessary. |
| 29 | + # |
| 30 | + # [Learn more about creating and using encrypted secrets](https://help.github.com/en/actions/automating-your-workflow-with-github-actions/creating-and-using-encrypted-secrets) |
| 31 | + # |
| 32 | + # Default: ${{ github.server_url == 'https://github.com' && github.token || '' }} |
| 33 | + token: '' |
| 34 | + |
| 35 | + # Used to specify a package manager for caching in the default directory. Supported values: npm, yarn, pnpm. |
| 36 | + # Package manager should be pre-installed |
| 37 | + # Default: '' |
| 38 | + cache: '' |
| 39 | + |
| 40 | + # Controls automatic caching for npm. By default, caching for npm is enabled if either the devEngines.packageManager field or the top-level packageManager field in package.json specifies npm and no explicit cache input is provided. |
| 41 | + # To disable automatic caching for npm, set package-manager-cache to false. |
| 42 | + # default: true |
| 43 | + package-manager-cache: true |
| 44 | + |
| 45 | + # Used to specify the path to a dependency file: package-lock.json, yarn.lock, etc. |
| 46 | + # It will generate hash from the target file for primary key. It works only If cache is specified. |
| 47 | + # Supports wildcards or a list of file names for caching multiple dependencies. |
| 48 | + # Default: '' |
| 49 | + cache-dependency-path: '' |
| 50 | + |
| 51 | + # Optional registry to set up for auth. Will set the registry in a project level .npmrc and .yarnrc file, |
| 52 | + # and set up auth to read in from env.NODE_AUTH_TOKEN. |
| 53 | + # Default: '' |
| 54 | + registry-url: '' |
| 55 | + |
| 56 | + # Optional scope for authenticating against scoped registries. |
| 57 | + # Will fall back to the repository owner when using the GitHub Packages registry (https://npm.pkg.github.com/). |
| 58 | + # Default: '' |
| 59 | + scope: '' |
| 60 | + |
| 61 | + # Set always-auth option in npmrc file. |
| 62 | + # Default: '' |
| 63 | + always-auth: '' |
| 64 | + |
| 65 | + # Optional mirror to download binaries from. |
| 66 | + # Artifacts need to match the official Node.js |
| 67 | + # Example: |
| 68 | + # V8 Canaray Build: <mirror_url>/download/v8-canary |
| 69 | + # RC Build: <mirror_url>/download/rc |
| 70 | + # Official: Build <mirror_url>/dist |
| 71 | + # Nightly build: <mirror_url>/download/nightly |
| 72 | + # Default: '' |
| 73 | + mirror: '' |
| 74 | + |
| 75 | + # Optional mirror token. |
| 76 | + # The token will be used as a bearer token in the Authorization header |
| 77 | + # Default: '' |
| 78 | + mirror-token: '' |
0 commit comments