You've already forked computing-box
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
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:
@@ -95,8 +95,10 @@ jobs:
|
||||
PREV_TAG="$(
|
||||
git tag --list 'v*' \
|
||||
| grep -E '^v[0-9]{2}\.[0-9]{2}\.[0-9]{2}[a-z]$' \
|
||||
| grep -Fxv "$TAG" \
|
||||
| sort -V \
|
||||
| tail -n 1
|
||||
| tail -n 1 \
|
||||
|| true
|
||||
)"
|
||||
|
||||
if [ -n "$PREV_TAG" ]; then
|
||||
@@ -196,7 +198,7 @@ jobs:
|
||||
- name: Set up Node
|
||||
uses: actions/setup-node@v6
|
||||
with:
|
||||
node-version: 22.22.1
|
||||
node-version: 25
|
||||
cache: npm
|
||||
|
||||
- name: Check Node version
|
||||
|
||||
Reference in New Issue
Block a user