Skip to content

Commit

Permalink
Update env 2 (#459)
Browse files Browse the repository at this point in the history
* update env

* update

* Update release-npm.yml
  • Loading branch information
nitro-neal authored Mar 21, 2024
1 parent 56bf729 commit 7cd2151
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions .github/workflows/release-npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 [email protected]

# 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:
Expand All @@ -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
Expand Down

0 comments on commit 7cd2151

Please sign in to comment.