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
This commit is contained in:
Kerem Kazan 2023-01-13 15:39:39 -05:00 committed by GitHub
parent b8fd046e51
commit bf303908fa
2 changed files with 1 additions and 6 deletions

View file

@ -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:]]')"
echo $(git log -1 --pretty=%h)

View file

@ -1,4 +0,0 @@
{
"name": "@herenotthere/dendrite-monolith",
"version": "1.0.38"
}