Skip to content

Commit

Permalink
wip: log install latest npm
Browse files Browse the repository at this point in the history
  • Loading branch information
lukekarrys committed Dec 3, 2023
1 parent dfe3157 commit acd7232
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/actions/install-latest-npm/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,9 @@ runs:
set -ex
which npx
npx -y semver -r "1" "1.0.0"
npx semver
npx --version
npm --version
npm exec --yes -- semver -r "1" "1.0.0"
MATCH=""
SPECS=("latest" "next-10" "next-9" "next-8" "next-7" "next-6")
Expand All @@ -45,7 +46,7 @@ runs:
ENGINES=$(npm view npm@$SPEC --json | jq -r '.engines.node')
echo "Checking if node@$NODE_VERSION satisfies npm@$SPEC ($ENGINES)"
if npx semver -r "$ENGINES" "$NODE_VERSION" > /dev/null; then
if npm exec --yes -- semver -r "$ENGINES" "$NODE_VERSION" > /dev/null; then
MATCH=$SPEC
echo "Found compatible version: npm@$MATCH"
break
Expand Down

0 comments on commit acd7232

Please sign in to comment.