Skip to content

Action.yml#4

Merged
tijuks (tijuks) merged 2 commits intoGlobal-Information-Systems:mainfrom
tijuks:main
Apr 19, 2026
Merged

Action.yml#4
tijuks (tijuks) merged 2 commits intoGlobal-Information-Systems:mainfrom
tijuks:main

Conversation

@tijuks
Copy link
Copy Markdown
Collaborator

  • uses: actions/setup-node@v6
    with:

    Version Spec of the version to use in SemVer notation.

    It also admits such aliases as lts/*, latest, nightly and canary builds

    Examples: 12.x, 10.15.1, >=10.15.0, lts/Hydrogen, 16-nightly, latest, node

    node-version: ''

    File containing the version Spec of the version to use. Examples: package.json, .nvmrc, .node-version, .tool-versions.

    If node-version and node-version-file are both provided the action will use version from node-version.

    node-version-file: ''

    Set this option if you want the action to check for the latest available version

    that satisfies the version spec.

    It will only get affect for lts Nodejs versions (12.x, >=10.15.0, lts/Hydrogen).

    Default: false

    check-latest: false

    Target architecture for Node to use. Examples: x86, x64. Will use system architecture by default.

    Default: ''. The action use system architecture by default

    architecture: ''

    Used to pull node distributions from https://github.com/actions/node-versions.

    Since there's a default, this is typically not supplied by the user.

    When running this action on github.com, the default value is sufficient.

    When running on GHES, you can pass a personal access token for github.com if you are experiencing rate limiting.

    We recommend using a service account with the least permissions necessary. Also

    when generating a new PAT, select the least scopes necessary.

    Learn more about creating and using encrypted secrets

    Default: ${{ github.server_url == 'https://github.com' && github.token || '' }}

    token: ''

    Used to specify a package manager for caching in the default directory. Supported values: npm, yarn, pnpm.

    Package manager should be pre-installed

    Default: ''

    cache: ''

    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.

    To disable automatic caching for npm, set package-manager-cache to false.

    default: true

    package-manager-cache: true

    Used to specify the path to a dependency file: package-lock.json, yarn.lock, etc.

    It will generate hash from the target file for primary key. It works only If cache is specified.

    Supports wildcards or a list of file names for caching multiple dependencies.

    Default: ''

    cache-dependency-path: ''

    Optional registry to set up for auth. Will set the registry in a project level .npmrc and .yarnrc file,

    and set up auth to read in from env.NODE_AUTH_TOKEN.

    Default: ''

    registry-url: ''

    Optional scope for authenticating against scoped registries.

    Will fall back to the repository owner when using the GitHub Packages registry (https://npm.pkg.github.com/).

    Default: ''

    scope: ''

    Optional mirror to download binaries from.

    Artifacts need to match the official Node.js

    Example:

    V8 Canary Build: <mirror_url>/download/v8-canary

    RC Build: <mirror_url>/download/rc

    Official: Build <mirror_url>/dist

    Nightly build: <mirror_url>/download/nightly

    Default: ''

    mirror: ''

    Optional mirror token.

    The token will be used as a bearer token in the Authorization header

    Default: ''

    mirror-token: ''

Signed-off-by: tijuks   <154919533+tijuks@users.noreply.github.com>
@tijuks tijuks (tijuks) merged commit d8d2bd2 into Global-Information-Systems:main Apr 19, 2026
0 of 231 checks passed
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.

1 participant