Skip to content

Commit

Permalink
fix(plugins/npm-post): improve early-exit block remove
Browse files Browse the repository at this point in the history
  • Loading branch information
dalisoft committed Jun 9, 2024
1 parent 4c6510e commit 742d7e7
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions plugins/npm-post.sh
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,6 @@ cleanup() {
}

release() {
if [ -z "${IS_WORKSPACE}" ]; then
log_verbose "[npm-post] Plugin requires a valid release-me release processing"
return 1
fi

# Committing a `npm` tag
log "Committing npm tag..."
log_verbose "Git hash: ${CHECKOUT_SHA}!"
Expand All @@ -95,7 +90,7 @@ release() {
prepare
git add package.json

if ${IS_WORKSPACE}; then
if ${IS_WORKSPACE-}; then
if [ -z "${PKG_NAME}" ]; then
log_verbose "[npm-post] Workspace defined but no package name defined"
return 1
Expand Down

0 comments on commit 742d7e7

Please sign in to comment.