Skip to content
Snippets Groups Projects
Commit 33902ebc authored by Philipp Stadler's avatar Philipp Stadler
Browse files

chore: add ci debbug

parent 1c424b2f
No related branches found
No related tags found
1 merge request!12chore: add ci debbug
Pipeline #14201 passed
...@@ -43,8 +43,13 @@ release-package-json-version-as-git-tag: ...@@ -43,8 +43,13 @@ release-package-json-version-as-git-tag:
resource_group: repository resource_group: repository
script: script:
- NPM_VERSION=$(grep '"version":' package.json -m 1 | cut -d '"' -f 4) - 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 # || exit_code=$? is the recommended way to ignore a non-zero exit code
- NPM_VERSION_GIT_TAG=$(git tag | grep ^${NPM_VERSION}$ || 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 - if [ -z "$NPM_VERSION_GIT_TAG" ]; then
- echo adding git tag for first commit on main with NPM version ${NPM_VERSION} - echo adding git tag for first commit on main with NPM version ${NPM_VERSION}
- git remote remove origin - git remote remove origin
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment