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)."
67
+
exit 0
68
+
fi
69
+
LATEST_VERSION="${LATEST_TAG#v}"
70
+
LATEST_VERSION="${LATEST_VERSION%%-*}"
71
+
if [ "$(printf '%s\n' "$LATEST_VERSION" "$PKG_VERSION" | sort -V | tail -1)" != "$PKG_VERSION" ]; then
72
+
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."
73
+
exit 1
74
+
fi
75
+
if [ "$PKG_VERSION" = "$LATEST_VERSION" ]; then
76
+
echo "::error::Version bump required: package.json version ($PKG_VERSION) equals latest tag ($LATEST_TAG). Please bump the version in package.json."
77
+
exit 1
78
+
fi
79
+
echo "Version bump check passed: package.json is at $PKG_VERSION (latest tag: $LATEST_TAG)."
# The below action will see the existing tags and will bump the current ones and this is only used to check whether the given tag already exists or not
14
-
# We will be using the previous tag to compare with the current tag in the package.json
15
-
# If both match then no new release would be triggered
|*Purpose:*| Primary Node.js module for [Contentstack DataSync](https://www.contentstack.com/docs/guide/synchronization/contentstack-datasync): coordinates content stores, asset stores, and a listener (webhooks), and pulls stack changes via the **Contentstack Sync API** with a **delivery token**. |
11
+
|*Out of scope (if any):*| Not the standalone CDA or CMA client SDKs; not a generic HTTP client library—sync orchestration and Node **`https`** to the Sync API only. Say **DataSync** / **Sync API**, not “CMA”, for this package’s main behavior. |
0 commit comments