generated from TBD54566975/tbd-project-template
-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* update env * update * Update release-npm.yml
- Loading branch information
1 parent
56bf729
commit 7cd2151
Showing
1 changed file
with
1 addition
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: | ||
|
@@ -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 | ||
|