fix(pipeline): improve upstream version extraction and sync dependencies

This commit is contained in:
2026-02-12 14:35:22 +01:00
parent f21e3262fc
commit dcf54ead84
2 changed files with 6 additions and 6 deletions

View File

@@ -108,7 +108,7 @@ jobs:
if [[ "${{ github.ref_type }}" == "tag" ]]; then
echo "🔎 Checking for @mintel dependencies in package.json..."
# Extract any @mintel/ version (they should be synced in monorepo)
UPSTREAM_VERSION=$(grep -o '"@mintel/.*": "[^"]*"' package.json | head -1 | cut -d'"' -f4 | sed 's/\^//; s/\~//')
UPSTREAM_VERSION=$(grep -o '"@mintel/.*": "[^"]*"' package.json | cut -d'"' -f4 | sed 's/\^//; s/\~//' | sort -V | tail -1)
TAG_TO_WAIT="v$UPSTREAM_VERSION"
if [[ -n "$UPSTREAM_VERSION" && "$UPSTREAM_VERSION" != "workspace:"* ]]; then