From 946be7757800492422ddb9fa50eadf6fb07802f3 Mon Sep 17 00:00:00 2001 From: Eric Weber Date: Sun, 1 Dec 2024 11:38:55 -0800 Subject: [PATCH] chore: get latest from all refs --- README.md | 2 +- file-bumper/.release-it.json | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index ec986b6..5f930cf 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,7 @@ docker run -it ghcr.io/rcwbr/release-it-docker-file-bumper:0.1.0 If using the [default configuration](#default-configurations), it is configured to bump versions in a plaintext `VERSION` file. By default, it will replace the entire contents of the file with the version number. -> :warning: Unlike the other images, the bumper release-it default configuration sets `git.commit` to true (as the version file bump must be committed) and `git.pushArgs` to `["tags"]` so as to push the tag only, not the commit back to the default branch. +> :warning: Unlike the other images, the bumper release-it default configuration sets `git.commit` true (as the version file bump must be committed) and `git.pushArgs` to `["tags"]` so as to push the tag only and not commit to the default branch. It also configures `git.getLatestTagFromAllRefs` true so that the latest tag may still be discovered despite not being associated with a commit on the default branch. ### Default configurations diff --git a/file-bumper/.release-it.json b/file-bumper/.release-it.json index c69cb85..47ea539 100644 --- a/file-bumper/.release-it.json +++ b/file-bumper/.release-it.json @@ -1,5 +1,6 @@ { "git": { + "getLatestTagFromAllRefs": true, "commit": true, "tag": true, "pushArgs": ["--tags"],