Skip to content

Commit a56052d

Browse files
committed
try againnn
1 parent f34d82f commit a56052d

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

ci/steps/publish-npm.sh

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -145,12 +145,7 @@ main() {
145145
# if version is valid, we check if we're publishing the same one
146146

147147
local hasVersion
148-
if ! hasVersion=$(npm view "$PACKAGE_NAME@$NPM_VERSION" version) ; then
149-
echo "$NPM_VERSION was not found $PACKAGE_NAME"
150-
echo "continuing with publish script"
151-
fi
152-
153-
if [[ $hasVersion == "$NPM_VERSION" ]]; then
148+
if hasVersion=$(npm view "$PACKAGE_NAME@$NPM_VERSION" version) && [[ $hasVersion == "$NPM_VERSION" ]]; then
154149
echo "$NPM_VERSION is already published under $PACKAGE_NAME"
155150
return
156151
fi

0 commit comments

Comments
 (0)