Skip to content
Snippets Groups Projects

feat: Add semantic release

Merged Alen Zubic requested to merge feat/add-semantic-release into main
Compare and Show latest version
3 files
+ 28
9
Compare changes
  • Side-by-side
  • Inline
Files
3
+ 19
7
@@ -9,18 +9,30 @@ variables:
# file: 'docker-build-push.yml'
stages:
- release
- tag-release
release:
image: node:20-bookworm-slim
stage: release
stage: tag-release
tags:
- gp-runners
before_script:
- apt-get update && apt-get install -y --no-install-recommends git-core ca-certificates
- npm install -g semantic-release@21.1.1 @semantic-release/gitlab-config@12.0.1 @semantic-release/exec@6.0.3
- mv package.json package.json.tmp | true
- mv package-semantic-release.json package.json
- npm install
# - npm install -g semantic-release@21.1.1 @semantic-release/gitlab-config@12.0.1 @semantic-release/exec@6.0.3
- mv package.json package-semantic-release.json
- mv package.json.tmp package.json | true
script:
- semantic-release
- cat version.txt
# rules:
# - if: $CI_COMMIT_BRANCH == "master"
# Configuration is in .releaserc.json
- npx semantic-release
# - semantic-release
artifacts:
paths:
- version.txt
rules:
# Run if .releaserc.json exists
- exists:
- .releaserc.json
# - package-semantic-release.json
Loading