This commit is contained in:
병준 박 2025-04-16 08:41:58 +00:00
parent 0814520f17
commit aca83283f1

View File

@ -8,6 +8,9 @@ spec:
type: string type: string
description: context directory description: context directory
default: "" default: ""
- name: targetProject
type: string
description: Nx workspace project name to lint and test
- name: ref - name: ref
type: string type: string
@ -37,8 +40,8 @@ spec:
FULL_REF="$(params.ref)" FULL_REF="$(params.ref)"
TAG_FROM_REF=$(basename "$FULL_REF") # → v0.2.0 TAG_FROM_REF=$(basename "$FULL_REF") # → v0.2.0
echo "📄 Reading version from package.json..." echo "📄 Reading version from package.json of $(params.targetProject)..."
VERSION=$(node -p "require('./package.json').version") VERSION=$(node -p "require('./$(params.targetProject)/package.json').version")
TAG_FROM_PROJECT="${VERSION}" TAG_FROM_PROJECT="${VERSION}"
echo "🔁 Comparing Git tag and project version:" echo "🔁 Comparing Git tag and project version:"