mirror of https://github.com/OpenVidu/openvidu.git
ci-scripts: use jq to modify NPM dependencies
parent
d3c98050ce
commit
69cd6f9c1a
|
@ -396,7 +396,8 @@ fi
|
||||||
# -------------
|
# -------------
|
||||||
if [[ "${BUMP_NPM_DEPENDENCY_VERSION}" == true ]]; then
|
if [[ "${BUMP_NPM_DEPENDENCY_VERSION}" == true ]]; then
|
||||||
pushd ${PROJECT_PATH}
|
pushd ${PROJECT_PATH}
|
||||||
npm install "${DEPENDENCY}@${VERSION}" --save-exact=true --legacy-peer-deps
|
tmp=$(mktemp) && jq ".dependencies.\"${DEPENDENCY}\" = \"${VERSION}\"" package.json >"$tmp" && mv "$tmp" package.json
|
||||||
|
# npm install "${DEPENDENCY}@${VERSION}" --save-exact=true --legacy-peer-deps
|
||||||
popd
|
popd
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue