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

chore: update tag thingy

parent ed895a6d
Branches
Tags
1 merge request!11chore: update tag thingy
Pipeline #14199 passed
......@@ -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"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment