From 7cd2151cd6f99f518fdd197b4c4978b764a0ab08 Mon Sep 17 00:00:00 2001 From: nitro-neal <5314059+nitro-neal@users.noreply.github.com> Date: Thu, 21 Mar 2024 16:23:31 -0700 Subject: [PATCH] Update env 2 (#459) * update env * update * Update release-npm.yml --- .github/workflows/release-npm.yml | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/.github/workflows/release-npm.yml b/.github/workflows/release-npm.yml index d68f66c93..e18ed13f6 100644 --- a/.github/workflows/release-npm.yml +++ b/.github/workflows/release-npm.yml @@ -50,11 +50,6 @@ jobs: run: | echo -e "//registry.npmjs.org/:_authToken=\${NODE_AUTH_TOKEN}" > ~/.npmrc - - name: Install semver utility - env: - NODE_AUTH_TOKEN: ${{secrets.npm_token}} - run: pnpm install -g semver@7.5.1 - # Note - this is not required but it gives a clean failure prior to attempting a release if the GH workflow runner is not authenticated with NPMjs.com - name: Verify NPM token is authenticated with NPMjs.com env: @@ -77,7 +72,7 @@ jobs: echo "Repo Version: $REPO_VERSION" # Compare the repo and NPMjs.com package versions. - IS_GREATER=$(semver --range ">$PUBLISHED_VERSION" $REPO_VERSION || true) + IS_GREATER=$(pnpm dlx semver --range ">$PUBLISHED_VERSION" $REPO_VERSION || true) if [ -n "$IS_GREATER" ] ; then echo "@web5/${{ matrix.package }}@$REPO_VERSION is latest" echo "IS_LATEST=true" >> $GITHUB_ENV