Skip to content
Snippets Groups Projects
Commit d64de8fc authored by Behrisch, M. (Michael)'s avatar Behrisch, M. (Michael)
Browse files

chore: :zap: adds versioning stage with semver to bump version numbers

The gitlab-ci has now a versioning stage to update the package.json
version and adding a autogenerated changelog. This functionality is
provided by semver https://github.com/jscutlery/semver
parent 8544446c
No related branches found
No related tags found
2 merge requests!17fix(storybook): :ambulance: adds babel config for module resolution of util projects,!15May 2022 merge request
...@@ -2,6 +2,7 @@ image: node:16-alpine ...@@ -2,6 +2,7 @@ image: node:16-alpine
stages: stages:
- setup - setup
- test - test
- versioning
- build - build
- dockerize - dockerize
...@@ -72,3 +73,23 @@ build-docker: ...@@ -72,3 +73,23 @@ build-docker:
# - docker push datastropheregistry.azurecr.io/$CI_PROJECT_NAME-webserver-service:$DOCKER_TAG # - docker push datastropheregistry.azurecr.io/$CI_PROJECT_NAME-webserver-service:$DOCKER_TAG
dependencies: dependencies:
- build - build
#####################
# STAGE: versioning #
#####################
versioning:
image: node:13
stage: versioning
only:
refs:
- release
- master
before_script:
# Skip before_script since we will not need the requirements
- ''
script:
- nx affected --target version
artifacts:
paths:
- CHANGELOG.md
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment