Tweak branch matching to allow not applying outside of PRs for matrix-analytics-events (#25712)
This commit is contained in:
parent
faa602d73a
commit
d31a498457
1 changed files with 14 additions and 11 deletions
|
@ -21,27 +21,30 @@ export PR_ORG=vector-im
|
||||||
export PR_REPO=element-web
|
export PR_REPO=element-web
|
||||||
|
|
||||||
# Set up the js-sdk first
|
# Set up the js-sdk first
|
||||||
node_modules/matrix-react-sdk/scripts/fetchdep.sh matrix-org matrix-js-sdk
|
node_modules/matrix-react-sdk/scripts/fetchdep.sh matrix-org matrix-js-sdk develop
|
||||||
pushd matrix-js-sdk
|
pushd matrix-js-sdk
|
||||||
yarn link
|
yarn link
|
||||||
yarn install --frozen-lockfile
|
yarn install --frozen-lockfile
|
||||||
popd
|
popd
|
||||||
|
|
||||||
# Also set up matrix-analytics-events so we get the latest from
|
# Also set up matrix-analytics-events for branch with matching name
|
||||||
# the main branch or a branch with matching name
|
node_modules/matrix-react-sdk/scripts/fetchdep.sh matrix-org matrix-analytics-events
|
||||||
node_modules/matrix-react-sdk/scripts/fetchdep.sh matrix-org matrix-analytics-events main
|
# We don't pass a default branch so cloning may fail when we are not in a PR
|
||||||
pushd matrix-analytics-events
|
# This is expected as this project does not share a release cycle but we still branch match it
|
||||||
yarn link
|
if [ -d matrix-analytics-events ]; then
|
||||||
yarn install --frozen-lockfile
|
pushd matrix-analytics-events
|
||||||
yarn build:ts
|
yarn link
|
||||||
popd
|
yarn install --frozen-lockfile
|
||||||
|
yarn build:ts
|
||||||
|
popd
|
||||||
|
fi
|
||||||
|
|
||||||
# Now set up the react-sdk
|
# Now set up the react-sdk
|
||||||
node_modules/matrix-react-sdk/scripts/fetchdep.sh matrix-org matrix-react-sdk
|
node_modules/matrix-react-sdk/scripts/fetchdep.sh matrix-org matrix-react-sdk develop
|
||||||
pushd matrix-react-sdk
|
pushd matrix-react-sdk
|
||||||
yarn link
|
yarn link
|
||||||
yarn link matrix-js-sdk
|
yarn link matrix-js-sdk
|
||||||
yarn link @matrix-org/analytics-events
|
[ -d matrix-analytics-events ] && yarn link @matrix-org/analytics-events
|
||||||
yarn install --frozen-lockfile
|
yarn install --frozen-lockfile
|
||||||
popd
|
popd
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue