ci: Add semantic-release
This commit is contained in:
@@ -2,6 +2,7 @@ version: "2.1"
|
|||||||
|
|
||||||
orbs:
|
orbs:
|
||||||
shellcheck: circleci/shellcheck@3.1.2
|
shellcheck: circleci/shellcheck@3.1.2
|
||||||
|
semantic-release: trustedshops-public/semantic-release@3.1.5
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
@@ -15,6 +16,18 @@ jobs:
|
|||||||
command: make build
|
command: make build
|
||||||
- store_artifacts:
|
- store_artifacts:
|
||||||
path: dist/
|
path: dist/
|
||||||
|
- persist_to_workspace:
|
||||||
|
paths:
|
||||||
|
. dist/
|
||||||
|
root: .
|
||||||
|
semantic-release:
|
||||||
|
executor: semantic-release/default
|
||||||
|
steps:
|
||||||
|
- checkout
|
||||||
|
- attach_workspace:
|
||||||
|
at: .
|
||||||
|
- semantic-release/install
|
||||||
|
- semantic-release/execute
|
||||||
|
|
||||||
workflows:
|
workflows:
|
||||||
main:
|
main:
|
||||||
@@ -25,4 +38,7 @@ workflows:
|
|||||||
- build:
|
- build:
|
||||||
requires:
|
requires:
|
||||||
- shellcheck
|
- shellcheck
|
||||||
|
- semantic-release:
|
||||||
|
requires:
|
||||||
|
- build
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,46 @@
|
|||||||
|
{
|
||||||
|
"branches": [
|
||||||
|
"master",
|
||||||
|
"main"
|
||||||
|
],
|
||||||
|
"plugins": [
|
||||||
|
[
|
||||||
|
"@semantic-release/commit-analyzer",
|
||||||
|
{
|
||||||
|
"preset": "conventionalcommits"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"@semantic-release/release-notes-generator",
|
||||||
|
{
|
||||||
|
"preset": "conventionalcommits"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"@semantic-release/changelog",
|
||||||
|
{
|
||||||
|
"changelogFile": "CHANGELOG.md"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"@semantic-release/git",
|
||||||
|
{
|
||||||
|
"assets": "CHANGELOG.md"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"@semantic-release/github",
|
||||||
|
{
|
||||||
|
"path": "semantic-release",
|
||||||
|
"name": "timo-reymann/bash-tui-toolkit",
|
||||||
|
"assets": [
|
||||||
|
{
|
||||||
|
"path": "dist/bundle.sh",
|
||||||
|
"label": "Full Library"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
],
|
||||||
|
"tagFormat": "${version}"
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user