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' }}