fix: update TAG assignment in release-dev workflow to extract version from package.json

- Changed TAG assignment from a static value to dynamically retrieve the version from package.json using grep and cut.
This commit is contained in:
kastov 2025-04-09 11:38:36 +03:00
parent 130a470f01
commit 7a7cb03e7e
No known key found for this signature in database
GPG key ID: 1B27BE29057F4C90

View file

@ -43,11 +43,7 @@ jobs:
BUILD_TIME=$(date -u +"%Y-%m-%dT%H:%M:%SZ") BUILD_TIME=$(date -u +"%Y-%m-%dT%H:%M:%SZ")
BRANCH="${{ github.ref_name }}" BRANCH="${{ github.ref_name }}"
FULL_SHA="${{ github.sha }}" FULL_SHA="${{ github.sha }}"
TAG="null" TAG=$(grep -m1 '"version":' package.json | cut -d'"' -f4)
if [[ "${{ github.ref }}" == refs/tags/* ]]; then
TAG="${{ github.ref_name }}"
fi
COMMIT_URL="https://github.com/${{ github.repository }}/commit/$SHORT_SHA" COMMIT_URL="https://github.com/${{ github.repository }}/commit/$SHORT_SHA"