From bf303908fa486dd9d23cee7cfa9906daf80038ad Mon Sep 17 00:00:00 2001 From: Kerem Kazan Date: Fri, 13 Jan 2023 15:39:39 -0500 Subject: [PATCH] dendrite version from commit hash (#1221) this pr computes dendrite docker version from the commit hash, instead of bumping versions. the previous setup caused issues and conflicts when branch protection is enabled. this way we can seamlessly keep pushing to main and it will keep getting built and published --- get-version.sh | 3 +-- package.json | 4 ---- 2 files changed, 1 insertion(+), 6 deletions(-) delete mode 100644 package.json diff --git a/get-version.sh b/get-version.sh index 9f3cc31d2..e04df4d2e 100644 --- a/get-version.sh +++ b/get-version.sh @@ -1,4 +1,3 @@ #!/usr/bin/env bash -# This script is used to extract the version string from the package.json file -echo "$(cat package.json | grep version | head -1 | awk -F: '{ print $2 }' | sed 's/[",]//g' | tr -d '[[:space:]]')" \ No newline at end of file +echo $(git log -1 --pretty=%h) \ No newline at end of file diff --git a/package.json b/package.json deleted file mode 100644 index ffb0ad06b..000000000 --- a/package.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "name": "@herenotthere/dendrite-monolith", - "version": "1.0.38" -}