Skip to content

vaimo/action-setup-node

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

GitHub Action For Node Setup

This action installs Node.js and optionally configures access to a custom NPM registry.

Supported versions

  • v2
    • Added configurable package manager support (npm, yarn, pnpm).
    • package-manager input is now required.
    • Added automatic pnpm installation via pnpm/action-setup when pnpm is selected.
    • Upgraded actions/setup-node from v4 to v6.
    • Upgraded pnpm/action-setup from v4 to v5.
  • v1
    • Installs the specified Node.js version.
    • Optionally configures authentication for a private/custom NPM registry.

Usage

- name: Setup node
  uses: vaimo/action-setup-node@v2
  with:
    # Node.js version to install (Required)
    node-version: ${{ inputs.node-version }}

    # Package manager to use. Supported values: npm, yarn, pnpm. (Required)
    package-manager: yarn

    # Working directory for the action (Optional, defaults to root)
    working-directory: src

    # Enable or disable custom NPM registry access (Optional, defaults to false)
    enable-npm-registry: ${{ inputs.enable-npm-registry }}

    # Custom NPM registry URL (e.g., https://registry.npmjs.org or private registry)
    npm-registry-url: ${{ secrets.npm-registry-url }}

    # NPM package scope (e.g., @yourcompany) (Required if enable-npm-registry is true)
    npm-registry-scope: ${{ secrets.npm-registry-scope }}

    # Authentication details (Required if enable-npm-registry is true)
    npm-registry-email: ${{ secrets.npm-registry-email }}
    npm-registry-user: ${{ secrets.npm-registry-user }}
    npm-registry-password: ${{ secrets.npm-registry-password }}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors