Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
Card Templates
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
kartenaale
Build
Card Templates
Commits
1c424b2f
Commit
1c424b2f
authored
9 months ago
by
Philipp Stadler
Browse files
Options
Downloads
Patches
Plain Diff
chore: update tag thingy
parent
ed895a6d
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!11
chore: update tag thingy
Pipeline
#14199
passed
9 months ago
Stage: release
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+2
-1
2 additions, 1 deletion
.gitlab-ci.yml
with
2 additions
and
1 deletion
.gitlab-ci.yml
+
2
−
1
View file @
1c424b2f
...
...
@@ -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"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment