From 1e24192d8e748360e26825e7e5b9d6afd93c6e88 Mon Sep 17 00:00:00 2001 From: Akhil Highflame Date: Fri, 7 Aug 2026 10:00:14 +0530 Subject: [PATCH] devops: Patching the release pipeline --- .github/workflows/release.yml | 24 +++++++++++++++++++----- 1 file changed, 19 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index dea7624..c797312 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -7,7 +7,6 @@ on: env: REGEX_PATTERN: "^v[0-9]+\\.[0-9]+\\.[0-9]+$" - RELEASE_TAG: ${{ github.event.release.tag_name }} jobs: highflame-validate: @@ -25,10 +24,10 @@ jobs: id: validate_tag shell: bash run: |- - if [[ "${{ env.RELEASE_TAG }}" =~ ${{ env.REGEX_PATTERN }} ]] ; then - echo "Valid version format: ${{ env.RELEASE_TAG }}" + if [[ "${{ env.GITHUB_REF_NAME }}" =~ ${{ env.REGEX_PATTERN }} ]] ; then + echo "Valid version format: ${{ env.GITHUB_REF_NAME }}" else - echo "Invalid version format: ${{ env.RELEASE_TAG }}" + echo "Invalid version format: ${{ env.GITHUB_REF_NAME }}" exit 1 fi @@ -102,11 +101,26 @@ jobs: - name: Install dependencies run: bun install --frozen-lockfile + - name: Update the dependencies version + shell: bash + run: |- + VERSION="${GITHUB_REF_NAME#v}" + + jq --arg version "^${VERSION}" ' + .dependencies["@highflame/codeoid-core"] = $version | + .dependencies["@highflame/codeoid-protocol"] = $version' \ + package.json > package.json.tmp && mv package.json.tmp package.json + + cd packages/core + jq --arg version "^${VERSION}" \ + '.peerDependencies["@highflame/codeoid-protocol"] = $version' \ + package.json > package.json.tmp && mv package.json.tmp package.json + # Every publishable package ships at the SAME version, and the tag is that # version. One gate replaces per-package version bookkeeping: if this # passes, all three publishes below are known-correct and known-new. - name: Verify workspace versions are in lockstep with the tag - run: bun run check:versions "${GITHUB_REF_NAME}" + run: bun run check:versions "${{ env.GITHUB_REF_NAME }}" - name: Build web UI run: |-