From 33902ebceed8d89c6cd6308b5b2d868eefc6a582 Mon Sep 17 00:00:00 2001 From: Philipp Stadler <hello@phstadler.com> Date: Wed, 24 Jul 2024 18:45:49 +0200 Subject: [PATCH] chore: add ci debbug --- .gitlab-ci.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 8729e64..b4a8755 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -43,8 +43,13 @@ release-package-json-version-as-git-tag: resource_group: repository script: - NPM_VERSION=$(grep '"version":' package.json -m 1 | cut -d '"' -f 4) + # debug + - git tag | grep ^${NPM_VERSION}$ || exit_code=$? # || exit_code=$? is the recommended way to ignore a non-zero exit code - NPM_VERSION_GIT_TAG=$(git tag | grep ^${NPM_VERSION}$ || exit_code=$?) + - echo $NPM_VERSION + - echo $NPM_VERSION_GIT_TAG + - echo $ - if [ -z "$NPM_VERSION_GIT_TAG" ]; then - echo adding git tag for first commit on main with NPM version ${NPM_VERSION} - git remote remove origin -- GitLab