Skip to content

Commit 61088cb

Browse files
committed
build: fix releases
1 parent c7caa3b commit 61088cb

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/ci-cd.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ jobs:
6767
cd src/oslc-postmessage-helper
6868
6969
# Create a pre-release version for main branch builds
70-
BASE_VERSION=$(npm pkg get version | tr -d '"')
70+
BASE_VERSION=$(npm pkg get version --workspace . | grep -Eo '[0-9]+\.[0-9]+\.[0-9]+' | head -n 1)
7171
COMMIT_SHA=$(echo ${{ github.sha }} | cut -c1-7)
7272
DEV_VERSION="${BASE_VERSION}-dev.${COMMIT_SHA}"
7373
echo "Creating development build: $DEV_VERSION"
@@ -85,7 +85,7 @@ jobs:
8585
cd src/oslc-selection-webcomponent
8686
8787
# Create a pre-release version for main branch builds
88-
BASE_VERSION=$(npm pkg get version | tr -d '"')
88+
BASE_VERSION=$(npm pkg get version --workspace . | grep -Eo '[0-9]+\.[0-9]+\.[0-9]+' | head -n 1)
8989
COMMIT_SHA=$(echo ${{ github.sha }} | cut -c1-7)
9090
DEV_VERSION="${BASE_VERSION}-dev.${COMMIT_SHA}"
9191
echo "Creating development build: $DEV_VERSION"

0 commit comments

Comments
 (0)