fix: Set release version on semantic-release
This commit is contained in:
+4
-22
@@ -5,28 +5,13 @@ orbs:
|
|||||||
semantic-release: trustedshops-public/semantic-release@5.1.1
|
semantic-release: trustedshops-public/semantic-release@5.1.1
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
|
||||||
docker:
|
|
||||||
- image: cimg/base:2023.06
|
|
||||||
steps:
|
|
||||||
- checkout
|
|
||||||
- setup_remote_docker
|
|
||||||
- run:
|
|
||||||
name: Build script
|
|
||||||
command: make build
|
|
||||||
- store_artifacts:
|
|
||||||
path: dist/
|
|
||||||
- persist_to_workspace:
|
|
||||||
paths:
|
|
||||||
. dist/
|
|
||||||
root: .
|
|
||||||
semantic-release:
|
semantic-release:
|
||||||
executor: semantic-release/default
|
executor: semantic-release/default
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- attach_workspace:
|
- setup_remote_docker
|
||||||
at: .
|
- semantic-release/install:
|
||||||
- semantic-release/install
|
additional_packages: '@semantic-release/exec'
|
||||||
- semantic-release/execute
|
- semantic-release/execute
|
||||||
|
|
||||||
workflows:
|
workflows:
|
||||||
@@ -35,10 +20,7 @@ workflows:
|
|||||||
- shellcheck/check:
|
- shellcheck/check:
|
||||||
name: shellcheck
|
name: shellcheck
|
||||||
dir: src
|
dir: src
|
||||||
- build:
|
|
||||||
requires:
|
|
||||||
- shellcheck
|
|
||||||
- semantic-release:
|
- semantic-release:
|
||||||
requires:
|
requires:
|
||||||
- build
|
- shellcheck
|
||||||
|
|
||||||
|
|||||||
@@ -28,6 +28,9 @@
|
|||||||
"assets": "CHANGELOG.md"
|
"assets": "CHANGELOG.md"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
["@semantic-release/exec", {
|
||||||
|
"prepareCmd": "VERSION=${nextRelease.version} make build"
|
||||||
|
}],
|
||||||
[
|
[
|
||||||
"@semantic-release/github",
|
"@semantic-release/github",
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,6 +1,10 @@
|
|||||||
SHELL := /bin/bash
|
SHELL := /bin/bash
|
||||||
.PHONY: help
|
.PHONY: help
|
||||||
VERSION=$(shell git describe --tags `git rev-list --tags --max-count=1`)
|
ifdef $(VERSION)
|
||||||
|
VERSION=$((VERSION))
|
||||||
|
else
|
||||||
|
VERSION=$(shell git describe --tags `git rev-list --tags --max-count=1`)
|
||||||
|
endif
|
||||||
|
|
||||||
help: ## Display this help page
|
help: ## Display this help page
|
||||||
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[33m%-30s\033[0m %s\n", $$1, $$2}'
|
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[33m%-30s\033[0m %s\n", $$1, $$2}'
|
||||||
|
|||||||
Reference in New Issue
Block a user