ci: maintain a floating v1 major-version tag on release
publish.yaml / publish (push) Successful in 8s

Lets consumers pin actions to @v1 instead of an exact vX.Y.Z, so they
pick up fixes automatically without per-repo version bumps.
This commit is contained in:
2026-08-18 09:38:15 -04:00
parent b8b5648d00
commit 992d3630e9
+4 -1
View File
@@ -24,6 +24,9 @@ jobs:
git add VERSION git add VERSION
git diff --cached --quiet || git commit -m "chore: bump version [skip ci]" git diff --cached --quiet || git commit -m "chore: bump version [skip ci]"
version=$(cat VERSION) version=$(cat VERSION)
major="${version%%.*}"
git tag "v${version}" git tag "v${version}"
git tag -f "v${major}"
git push git push
git push --tags git push origin "refs/tags/v${version}"
git push --force origin "refs/tags/v${major}"