fix(release): exclude current tag from previous tag lookup and handle empty result
All checks were successful
Changelog + Release on main / changelog_and_release (push) Successful in 9m57s

- Exclude newly created tag from PREV_TAG detection to avoid self-referencing ranges
- Add fallback to prevent workflow failure when no previous tag exists
- Update Node version in workflow configuration

Signed-off-by: Alexander Lyall <alex@adcm.uk>
This commit is contained in:
2026-03-21 22:50:21 +00:00
parent 63e2c267fb
commit c8b43a3f8f

View File

@@ -95,8 +95,10 @@ jobs:
PREV_TAG="$( PREV_TAG="$(
git tag --list 'v*' \ git tag --list 'v*' \
| grep -E '^v[0-9]{2}\.[0-9]{2}\.[0-9]{2}[a-z]$' \ | grep -E '^v[0-9]{2}\.[0-9]{2}\.[0-9]{2}[a-z]$' \
| grep -Fxv "$TAG" \
| sort -V \ | sort -V \
| tail -n 1 | tail -n 1 \
|| true
)" )"
if [ -n "$PREV_TAG" ]; then if [ -n "$PREV_TAG" ]; then
@@ -196,7 +198,7 @@ jobs:
- name: Set up Node - name: Set up Node
uses: actions/setup-node@v6 uses: actions/setup-node@v6
with: with:
node-version: 22.22.1 node-version: 25
cache: npm cache: npm
- name: Check Node version - name: Check Node version