From 1b47ba86d60cd96a86257dbef77f9bbf7338b54c Mon Sep 17 00:00:00 2001 From: Kerem Kazan Date: Wed, 14 Dec 2022 15:03:01 -0500 Subject: [PATCH] Dendrite auto publish (#1050) - Created a package.json in servers/dendrite. Moving forward, this file is our canonical dendrite version, and our docker builds will depend on this version. - Created a script that extracts the package.json version and puts it into the GitHub actions build environment as `RELEASE_VERSION`. - Updated the GitHub action so that it builds and publishes the docker image to dockerhub whenever we merge dendrite changes to main. Co-authored-by: Automated Version Bump --- get-version.sh | 4 ++++ package.json | 4 ++++ 2 files changed, 8 insertions(+) create mode 100644 get-version.sh create mode 100644 package.json diff --git a/get-version.sh b/get-version.sh new file mode 100644 index 000000000..9f3cc31d2 --- /dev/null +++ b/get-version.sh @@ -0,0 +1,4 @@ +#!/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 diff --git a/package.json b/package.json new file mode 100644 index 000000000..ceb0bf7af --- /dev/null +++ b/package.json @@ -0,0 +1,4 @@ +{ + "name": "@herenotthere/dendrite-monolith", + "version": "1.0.34" +}