|
@@ -31,6 +31,14 @@ DEB_REPO_DIR="${DEB_REPO_DIR:-/data/dev/smartbotics/smartbotics-deb-repo}"
|
|
|
DIST_BASE="${PROJECT_DIR}/dist"
|
|
DIST_BASE="${PROJECT_DIR}/dist"
|
|
|
|
|
|
|
|
VERSION="$(cat "$PROJECT_DIR/VERSION")"
|
|
VERSION="$(cat "$PROJECT_DIR/VERSION")"
|
|
|
|
|
+# VERSION and api/openapi.json's info.version must agree, checked HERE so it
|
|
|
|
|
+# covers every path - local, Docker and publish alike. They drifted once and
|
|
|
|
|
+# 0.10.0 was published with the docs claiming 0.9.2; openapi.json ships in the
|
|
|
|
|
+# server package and is served at /openapi.json, so a stale value is live, and
|
|
|
|
|
+# because a published version is never reused for different content, correcting
|
|
|
|
|
+# it cost a whole release. A release step that relies on remembering is a
|
|
|
|
|
+# release step that gets skipped.
|
|
|
|
|
+"$PROJECT_DIR/scripts/check-version-sync.sh"
|
|
|
GIT_COMMIT="$(git -C "$PROJECT_DIR" rev-parse --short HEAD 2>/dev/null || echo "unknown")"
|
|
GIT_COMMIT="$(git -C "$PROJECT_DIR" rev-parse --short HEAD 2>/dev/null || echo "unknown")"
|
|
|
|
|
|
|
|
# ---------------------------------------------------------------------------
|
|
# ---------------------------------------------------------------------------
|