Skip to content

Commit 27f525e

Browse files
author
deepikaSingh2711
committed
setup
1 parent 51a971f commit 27f525e

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

.github/workflows/multiTenant_deploy_and_Integration_test.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,17 @@ jobs:
8282
tar -xvzf /tmp/cloud-mta-build-tool_1.2.28_Linux_amd64.tar.gz
8383
sudo mv mbt /usr/local/bin/
8484
npm i @sap/cds-dk -g
85+
# Run CDS build first to generate the mtx/sidecar/gen directory
86+
npx cds build --production
87+
# Now update the GENERATED package.json files with the correct tgz reference
88+
TGZ_FILE=$(ls -1 cap-js-sdm-*.tgz | head -n 1)
89+
echo "Updating generated package.json files with: $TGZ_FILE"
90+
# Update mtx/sidecar/gen/package.json (the one that MTA build actually uses)
91+
if [ -f mtx/sidecar/gen/package.json ]; then
92+
sed -i "s|\"@cap-js/sdm\": \"file:.*cap-js-sdm-.*\.tgz\"|\"@cap-js/sdm\": \"file:../../../$TGZ_FILE\"|g" mtx/sidecar/gen/package.json
93+
echo "Updated mtx/sidecar/gen/package.json"
94+
fi
95+
# Now run MTA build
8596
mbt build
8697
cf install-plugin multiapps -f
8798
cf deploy mta_archives/capire.incidents.mtx_0.0.3.mtar -f

0 commit comments

Comments
 (0)