diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index f99d3d8ac825acbe1694fdadf11a974ead701a31..8729e64bdffedeaf12b61efd4c0f4034f83b8037 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"