Commit 5ea23d8a authored by Stefan Funk's avatar Stefan Funk
Browse files

fix: add pom version to package json asset creation

parent 21e5fabf
Pipeline #314492 passed with stages
in 10 minutes and 38 seconds
......@@ -48,18 +48,22 @@ cache:
get-pom-version:
stage: prepare
only:
- main
- develop
- tags
extends:
- .get-pom-version-to-env
# Semantic versioning: Update POM and CHANGELOG RELEASE files, TAG a new RELEASE version!
prepare-release:
stage: prepare
semantic-release:
stage: build
rules:
# Only run if branch "main" AND commit title IS NOT "1.2.3" (main commit with tag) AND DOES NOT START WITH "Prepare next development iteration" (main commit with new version)
- if: $CI_COMMIT_REF_NAME == "main" && $CI_COMMIT_TITLE !~ /^[\d\.]+$/ && $CI_COMMIT_TITLE !~ /^Prepare next development iteration/
image: maven:3.8.3-jdk-8
script:
# Add POM version to release asset kolibri-cli JAR first, then prepare semantic (and GitLab release!
- sed 's/POM_VERSION/${PVERSION}/' package.json > package.json.tmp; mv package.json.tmp package.json
extends:
- .prepare-semantic-release
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment