You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
echo "No existing tags found. Skipping version-bump check (first release)."
52
+
echo "No tags yet. Skipping."
63
53
exit 0
64
54
fi
65
-
LATEST_VERSION="${LATEST_TAG#v}"
66
-
LATEST_VERSION="${LATEST_VERSION%%-*}"
67
-
if [ "$(printf '%s\n' "$LATEST_VERSION" "$PKG_VERSION" | sort -V | tail -1)" != "$PKG_VERSION" ]; then
68
-
echo "::error::Version bump required: package.json version ($PKG_VERSION) is not greater than latest tag ($LATEST_TAG). Please bump the version in package.json."
69
-
exit 1
70
-
fi
71
-
if [ "$PKG_VERSION" = "$LATEST_VERSION" ]; then
72
-
echo "::error::Version bump required: package.json version ($PKG_VERSION) equals latest tag ($LATEST_TAG). Please bump the version in package.json."
73
-
exit 1
74
-
fi
75
-
CHANGELOG_VERSION=$(sed -nE 's/^## \[v?([0-9]+\.[0-9]+\.[0-9]+).*/\1/p' CHANGELOG.md | head -1)
76
-
if [ -z "$CHANGELOG_VERSION" ]; then
77
-
echo "::error::Could not find a version entry in CHANGELOG.md (expected line like '## [v1.0.0](...)')."
78
-
exit 1
79
-
fi
80
-
if [ "$CHANGELOG_VERSION" != "$PKG_VERSION" ]; then
81
-
echo "::error::CHANGELOG version mismatch: CHANGELOG.md top version ($CHANGELOG_VERSION) does not match package.json version ($PKG_VERSION). Please add or update the CHANGELOG entry for $PKG_VERSION."
0 commit comments