From b30b1629450cce26d5b06834fe73737b744622ef Mon Sep 17 00:00:00 2001 From: Maciej <100693724+m-kusnierz@users.noreply.github.com> Date: Tue, 3 Oct 2023 11:54:30 +0200 Subject: [PATCH] Use node 16 for npm install if it is not set in package.json (#20) --- npm-install/action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/npm-install/action.yml b/npm-install/action.yml index 855bbc3..2d4f7d6 100644 --- a/npm-install/action.yml +++ b/npm-install/action.yml @@ -44,7 +44,7 @@ runs: run: | # tr-d '<=>' to trim '>=8.19.x' to '8.19.x' to prevent major version bumps (like npm@9.3.0 installed by npm i npm@>=8.19.x) NODE_VERSION=$(jq -r '.engines.node' ./package.json | tr -d '<=>') - echo "node-version=${NODE_VERSION/null/14}" >> $GITHUB_OUTPUT + echo "node-version=${NODE_VERSION/null/16}" >> $GITHUB_OUTPUT NPM_VERSION=$(jq -r '.engines.npm' ./package.json | tr -d '<=>') echo "npm-version=${NPM_VERSION/null/}" >> $GITHUB_OUTPUT NPM_POSTINSTALL=$(jq -r '.scripts.postinstall' ./package.json)