- name: Setup Node.js environment
uses: actions/setup-node@v3.3.0
with:
always-auth: # optional, default is false
node-version: # optional
node-version-file: # optional
architecture: # optional
check-latest: # optional
Set this option if you want the action to check for the latest available version that satisfies the version spec.
registry-url: # optionalOptional 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.
scope: # optionalOptional scope for authenticating against scoped registries. Will fall back to the repository owner when using the GitHub Packages registry (https://npm.pkg.github.com/).
token: # optional, default is ${{ github.token }} cache: # optional cache-dependency-path: # optionalUsed to pull node distributions from node-versions. Since there's a default, this is typically not supplied by the user.