init
This commit is contained in:
parent
0814520f17
commit
aca83283f1
@ -8,6 +8,9 @@ spec:
|
||||
type: string
|
||||
description: context directory
|
||||
default: ""
|
||||
- name: targetProject
|
||||
type: string
|
||||
description: Nx workspace project name to lint and test
|
||||
|
||||
- name: ref
|
||||
type: string
|
||||
@ -37,8 +40,8 @@ spec:
|
||||
FULL_REF="$(params.ref)"
|
||||
TAG_FROM_REF=$(basename "$FULL_REF") # → v0.2.0
|
||||
|
||||
echo "📄 Reading version from package.json..."
|
||||
VERSION=$(node -p "require('./package.json').version")
|
||||
echo "📄 Reading version from package.json of $(params.targetProject)..."
|
||||
VERSION=$(node -p "require('./$(params.targetProject)/package.json').version")
|
||||
TAG_FROM_PROJECT="${VERSION}"
|
||||
|
||||
echo "🔁 Comparing Git tag and project version:"
|
||||
|
Loading…
x
Reference in New Issue
Block a user