From a96dc53f39bc8e2894c5aebd6eed6cd06aa2d3db Mon Sep 17 00:00:00 2001 From: Niklas van Schrick Date: Mon, 16 Feb 2026 19:53:19 +0100 Subject: [PATCH] Update version format for sagittarius-graphql-types package --- .gitlab-ci.yml | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index bce40214..3f0fecf0 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -139,6 +139,7 @@ npm-types:generate-graphql: - tmp/schema.graphql - tmp/schema.json - tooling/graphql/types/ + - VERSION .npm-types:publish-graphql: @@ -155,7 +156,12 @@ npm-types:generate-graphql: - cd tooling/graphql/types - npm ci - npm run generate - - npm version --git-tag-version false 0.0.0-$CI_COMMIT_SHA + - | + if [[ -n "$CI_COMMIT_TAG" ]]; then + npm version --git-tag-version false $CI_COMMIT_TAG + else + npm version --git-tag-version false $(cat ../../../VERSION)-experimental-$CI_PIPELINE_ID-$CI_COMMIT_SHA + fi npm-types:publish-graphql-dry-run: extends: @@ -169,6 +175,8 @@ npm-types:publish-graphql-dry-run: paths: - tooling/graphql/types/index.d.ts rules: + - if: $CI_COMMIT_TAG + when: never - if: $C0_GH_REF_NAME != "main" npm-types:publish-graphql: @@ -177,8 +185,14 @@ npm-types:publish-graphql: stage: publish script: - !reference [ .npm-types:publish-graphql, script ] - - npm publish --tag latest + - | + if [[ -n "$CI_COMMIT_TAG" ]]; then + npm publish --tag latest + else + npm publish --tag experimental + fi rules: + - if: $CI_COMMIT_TAG - if: $C0_GH_REF_NAME == "main" when: manual allow_failure: true