Skip to content

feat(install-node): allow specifying package manager and corepack behavior#108

Open
barbados-clemens wants to merge 2 commits intomainfrom
improve-install-node-step-inputs
Open

feat(install-node): allow specifying package manager and corepack behavior#108
barbados-clemens wants to merge 2 commits intomainfrom
improve-install-node-step-inputs

Conversation

@barbados-clemens
Copy link
Contributor

You are now able to:

  • select the specific package manager and version to install
  • skip package manager re-installs completely
  • provide corepack specific version
  • skip corepack enable completely

@nx-cloud
Copy link

nx-cloud bot commented Nov 18, 2025

View your CI Pipeline Execution ↗ for commit ee5aab1

Command Status Duration Result
nx affected -t test ✅ Succeeded <1s View ↗

☁️ Nx Cloud last updated this comment at 2025-11-18 17:37:53 UTC

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR enhances the install-node workflow step by adding configurability for package manager installation and corepack behavior. Users can now specify which package manager to install (npm, yarn, pnpm, or all), skip package manager installation entirely, provide a specific corepack version, or skip corepack enabling completely.

Key changes:

  • Added new configuration options for package_manager, package_manager_version, and corepack_version
  • Refactored package manager installation logic into a dedicated getPMCommands function with a switch statement to handle different scenarios
  • Improved code organization by extracting helper functions to the module level

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@barbados-clemens barbados-clemens force-pushed the improve-install-node-step-inputs branch from b5bfc5b to c4a2295 Compare November 18, 2025 16:38
…avior

You are now able to:
- select the specific package manager and version to install
- skip package manager re-installs completely
- provide corepack specific version
- skip corepack enable completely
@barbados-clemens barbados-clemens force-pushed the improve-install-node-step-inputs branch from c4a2295 to 1ecfae9 Compare November 18, 2025 16:46
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants