mirror of
https://github.com/element-hq/element-web
synced 2024-11-25 18:55:58 +03:00
rev-parse the commit from the deps
Because it's not added to package.json by npm anymore
This commit is contained in:
parent
35a671d43c
commit
22e5e2126b
1 changed files with 3 additions and 5 deletions
|
@ -34,11 +34,9 @@ npm run lintall -- -f checkstyle -o eslint.xml || true
|
||||||
|
|
||||||
rm dist/riot-*.tar.gz || true # rm previous artifacts without failing if it doesn't exist
|
rm dist/riot-*.tar.gz || true # rm previous artifacts without failing if it doesn't exist
|
||||||
|
|
||||||
# node_modules deps from 'npm install' don't have a .git dir so can't
|
# Since the deps are fetched from git, we can rev-parse
|
||||||
# rev-parse; but they do set the commit in package.json under 'gitHead' which
|
REACT_SHA=$(cd node_modules/matrix-react-sdk; git rev-parse --short=12 HEAD)
|
||||||
# we're grabbing here.
|
JSSDK_SHA=$(cd node_modules/matrix-js-sdk; git rev-parse --short=12 HEAD)
|
||||||
REACT_SHA=$(grep 'gitHead' node_modules/matrix-react-sdk/package.json | cut -d \" -f 4 | head -c 12)
|
|
||||||
JSSDK_SHA=$(grep 'gitHead' node_modules/matrix-js-sdk/package.json | cut -d \" -f 4 | head -c 12)
|
|
||||||
|
|
||||||
VECTOR_SHA=$(git rev-parse --short=12 HEAD) # use the ACTUAL SHA rather than assume develop
|
VECTOR_SHA=$(git rev-parse --short=12 HEAD) # use the ACTUAL SHA rather than assume develop
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue