From 5dd1a4acb03a699fbc07f060ee06ff6a21b580e2 Mon Sep 17 00:00:00 2001 From: Durran Jordan Date: Sat, 26 Jul 2025 00:38:54 +0200 Subject: [PATCH] feat: allow npm version to be provided --- node/setup/action.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/node/setup/action.yml b/node/setup/action.yml index 90799d0..d73a7b4 100644 --- a/node/setup/action.yml +++ b/node/setup/action.yml @@ -4,6 +4,9 @@ inputs: ignore_install_scripts: description: Should we ignore postinstall scripts? default: "false" + npm_version: + description: Define an explicit NPM version. + default: "latest" runs: using: composite @@ -11,9 +14,8 @@ runs: - uses: actions/setup-node@v4 with: node-version: "lts/*" - cache: "npm" registry-url: "https://registry.npmjs.org" - - run: npm install -g npm@latest + - run: npm install -g npm@${{ inputs.npm_version }} shell: bash - run: npm clean-install if: ${{ inputs.ignore_install_scripts == 'false' }}