From 1c424b2f24028fa976aa0d4978ca3f71e4fcf65f Mon Sep 17 00:00:00 2001 From: Philipp Stadler <hello@phstadler.com> Date: Wed, 24 Jul 2024 18:39:58 +0200 Subject: [PATCH] chore: update tag thingy --- .gitlab-ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index f99d3d8..8729e64 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -40,6 +40,7 @@ release-package-json-version-as-git-tag: - if: $CI_COMMIT_BRANCH == "main" # we don't need anything in node_modules or python, so don't fetch the cache cache: [] + resource_group: repository script: - NPM_VERSION=$(grep '"version":' package.json -m 1 | cut -d '"' -f 4) # || exit_code=$? is the recommended way to ignore a non-zero exit code @@ -47,7 +48,7 @@ release-package-json-version-as-git-tag: - 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 - - git remote add origin https://oauth:${REPOSITORY_ACCESS_TOKEN}@gitlab.phaidra.org/kartenaale/build/card-templates.git + - git remote add origin https://oauth:${REPOSITORY_ACCESS_TOKEN}@gitlab.phaidra.org/$CI_PROJECT_PATH.git - git config user.email Cao Cao - git config user.name cao.cao@ci.kartenaale - git tag -a $NPM_VERSION -m "Release $NPM_VERSION" -- GitLab