Added logic to workflow file to account for situation where package isn't in registry
All checks were successful
Publish to Private NPM Registry / publish (push) Successful in 40s
All checks were successful
Publish to Private NPM Registry / publish (push) Successful in 40s
This commit is contained in:
parent
18cc482293
commit
30746a4e34
1 changed files with 1 additions and 1 deletions
|
|
@ -65,7 +65,7 @@ jobs:
|
|||
echo "Version: $VERSION"
|
||||
|
||||
NAME=$(node -p "require('./package.json').name")
|
||||
LATEST_VERSION=$(npm show $NAME version --registry https://npm.pkg.bridgemanaccessible.ca)
|
||||
LATEST_VERSION=$(npm show $NAME version --registry https://npm.pkg.bridgemanaccessible.ca 2>/dev/null || echo "0.0.0")
|
||||
echo "Latest version: $LATEST_VERSION"
|
||||
|
||||
if [ "$LATEST_VERSION" != "$VERSION" ]; then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue