Files
luminance/bump.sh
T
jay 9fec89949b
Test and Build / test-and-build (push) Failing after 1m47s
Started palette editor.
Cleaned up tests and lint errors.
Upgraded npm packages.
2026-03-19 18:54:44 -04:00

15 lines
380 B
Bash
Executable File

#!/bin/bash
latest=$(git describe --tags --abbrev=0 2>/dev/null || echo "v0.0.0")
IFS='.' read -r major minor patch <<< "${latest#v}"
case ${1:-patch} in
major) new="v$((major+1)).0.0" ;;
minor) new="v${major}.$((minor+1)).0" ;;
patch) new="v${major}.${minor}.$((patch+1))" ;;
*) echo "Usage: bump.sh [major|minor|patch]" >&2; exit 1 ;;
esac
git tag -a "$new"