Skip to content
Snippets Groups Projects
avatar
smartdatalab/public/ci-cd-components/semantic-release
Semantic Release 3.12.0

gitlab-ci-semrel

include:
  - component: $CI_SERVER_FQDN/smartdatalab/public/ci-cd-components/semantic-release/gitlab-ci-semrel@3.12.0
Inputs
Name
Mandatory
Type
Description
Default
imagefalsestringThe Docker image used to run semantic-releaseregistry.hub.docker.com/library/node:lts-slim
dry-runfalsebooleanFor generated `.releaserc` file only. Activate the [dryRun semantic-release option](https://github.com/semantic-release/semantic-release/blob/master/docs/usage/configuration.md#dryrun) if present.
info-onfalsestringDefine on which branch(es) the job shall be run
versionfalsestringThe [semantic-release](https://www.npmjs.com/package/semantic-release) version to uselatest
hooks-dirfalsestringHook scripts folder..
config-dirfalsestringdirectory containing your [semantic-release configuration](https://semantic-release.gitbook.io/semantic-release/usage/configuration#configuration-file).
tag-formatfalsestringFor generated `.releaserc` file only. [tagFormat semantic-release option](https://github.com/semantic-release/semantic-release/blob/master/docs/usage/configuration.md#tagformat)e. :warning: don't forget to double the `$` character so it is not interpreted by GitLab.$${version}
commit-specfalsestringCommit specification `preset` (possible values: `angular`, `codemirror`, `ember`, `eslint`, `express`, `jquery`, `jshint`, `conventionalcommits`). The default is `angular`.angular
branches-reffalsestringRegular expression pattern matching branches from which releases should happen (should match your [semantic-release configuration](https://semantic-release.gitbook.io/semantic-release/usage/configuration#branches))/^(master|main)$/
exec-versionfalsestringThe [@semantic-release/exec](https://www.npmjs.com/package/@semantic-release/exec) version to uselatest
changelog-filefalsestring[changelogFile @semantic-release/changelog option](https://github.com/semantic-release/changelog#options).CHANGELOG.md
commit-messagefalsestring[message @semantic-release/git option](https://github.com/semantic-release/git#message)
changelog-titlefalsestring[changelogTitle @semantic-release/changelog option](https://github.com/semantic-release/changelog#options). You might want to use markdown format (for example `# MyApp Changelog`).
release-disabledfalsebooleanDisable semantic-release
changelog-enabledfalsebooleanAdd the [@semantic-release/changelog](https://github.com/semantic-release/changelog) plugin which will commit a changelog file in the repository.
auto-release-enabledfalsebooleanWhen set the job start automatically. When not set (default), the job is manual.
required-plugins-filefalsestringFull path to `semrel-required-plugins.txt` file _(relative to `$CI_PROJECT_DIR`)_semrel-required-plugins.txt
semantic-release-job-tagsfalsearrayTags to be used for selecting runners for the job[]

gitlab-ci-semrel-vault

include:
  - component: $CI_SERVER_FQDN/smartdatalab/public/ci-cd-components/semantic-release/gitlab-ci-semrel-vault@3.12.0
Inputs
Name
Mandatory
Type
Description
Default
vault-base-urlfalsestringThe Vault server base API url
vault-oidc-audfalsestringThe `aud` claim for the JWT$CI_SERVER_URL