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