From efa193364a3c0d657471083c56835ecd180b2688 Mon Sep 17 00:00:00 2001 From: Erlend Oftedal Date: Tue, 13 Feb 2024 11:38:59 +0100 Subject: [PATCH] Fix publish script --- node/publish.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/node/publish.sh b/node/publish.sh index ea7449f6..fbeb536d 100644 --- a/node/publish.sh +++ b/node/publish.sh @@ -19,8 +19,8 @@ COMMIT_ID=$(git rev-parse HEAD) node -e "if (require('./lib/retire.js').version != require('./package.json').version) throw new Error('Wrong version in lib/retire.js')" -if grep -q "$VERSION" CHANGELOG.md; then - echo "Version is missing in CHANGELOG.md" +if ! grep -q "$VERSION" CHANGELOG.md; then + echo "ERROR: Version is missing in CHANGELOG.md" exit 1 fi