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
4 files
+ 52
18
Compare changes
  • Side-by-side
  • Inline
Files
4
+ 18
5
@@ -9,17 +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
# - 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:
# Configuration is in .releaserc.json
# - npx semantic-release
- semantic-release
# rules:
# - if: $CI_COMMIT_BRANCH == "master"
artifacts:
paths:
- version.txt
rules:
# Run if .releaserc.json exists
- exists:
- .releaserc.json
# - package-semantic-release.json
Loading