Skip to content

Updaters ​

Updaters change the version in your project files in the release commit.

TypeWhat it changes
package-jsonthe top-level "version"
pom-xmlthe project's own <version> (not the parent's or any dependency's)
gradlea top-level version = '…' / version "…" (Groovy/Kotlin DSL) or version=… in .properties
genericthe first version on every line containing a marker (see below)

Each updater takes an optional path, relative to the package. Defaults: package.json, pom.xml, build.gradle.

Generic updater ​

yaml
image:
  tag: 1.2.3 # x-relwolf-version

The marker has to be the last thing on the line (usually in a comment, optionally before a closing --> or */). Its name selects the granularity of the first matching version on that line. A leading v is kept.

Partial markers ​

MarkerReplacesExample
x-relwolf-versionthe full version1.2.3 → 2.0.0
x-relwolf-minorMAJOR.MINOR, not for pre-releases1.2 → 2.0
x-relwolf-majorMAJOR, not for pre-releasesv1 → v2

Use the partial markers for references to floating tags:

yaml
- uses: org/repo@v1 # x-relwolf-major
yaml
image: org/repo:1.2 # x-relwolf-minor
markdown
Download version 1.2.3 <!-- x-relwolf-version -->

Pre-releases leave partial markers unchanged, because no floating tag exists for them.

Developed by lupiqlupiq