By default, --ignore-scripts is added to the install command to prevent pre/post install scripts from executing (supply chain security). Pass runInstallScripts=true to allow scripts. By default, a 3-day npm dependency cooldown is enabled via NPM_CONFIG_MIN_RELEASE_AGE. Pass cooldownEnabled=false to
(packageName, version, stepName, cacheKeyPrefix string, includeNodeSetup bool, runInstallScripts bool, cooldownEnabled bool)
| 53 | // |
| 54 | // Returns steps for installing the npm package (optionally with Node.js setup) |
| 55 | func GenerateNpmInstallSteps(packageName, version, stepName, cacheKeyPrefix string, includeNodeSetup bool, runInstallScripts bool, cooldownEnabled bool) []GitHubActionStep { |
| 56 | return GenerateNpmInstallStepsWithScope(packageName, version, stepName, cacheKeyPrefix, includeNodeSetup, true, runInstallScripts, cooldownEnabled) |
| 57 | } |
| 58 | |
| 59 | // BuildStandardNpmEngineInstallSteps creates standard npm installation steps for engines. |
| 60 | // This helper extracts the common pattern shared by Copilot, Codex, and Claude engines. |