diff --git a/.github/workflows/code.hotfix.branch.yml b/.github/workflows/code.hotfix.branch.yml index 3155c723..34df3206 100644 --- a/.github/workflows/code.hotfix.branch.yml +++ b/.github/workflows/code.hotfix.branch.yml @@ -30,6 +30,7 @@ jobs: DST_TAG=${{ github.event.inputs.dest_tag }} git checkout -b hotfix/${{ github.event.inputs.dest_tag }} sed -i -e "s/\"version\": \"${SRC_TAG:1}\"/\"version\": \"${DST_TAG:1}\"/g" package.json + sed -i -e "s/\"version\": \"${SRC_TAG:1}\"/\"version\": \"${DST_TAG:1}\"/g" lib/user-interface/react/package.json sed -i -e "s/version = \"${SRC_TAG:1}\"/version = \"${DST_TAG:1}\"/g" lisa-sdk/pyproject.toml sed -i -e "s/${SRC_TAG:1}/${DST_TAG:1}/g" VERSION git commit -a -m "Updating version for hotfix ${{ github.event.inputs.dest_tag }}" diff --git a/.github/workflows/code.release.branch.yml b/.github/workflows/code.release.branch.yml index 9d59f6d3..4b8e07b1 100644 --- a/.github/workflows/code.release.branch.yml +++ b/.github/workflows/code.release.branch.yml @@ -25,6 +25,7 @@ jobs: git config --global user.name "github_actions_lisa" RELEASE_TAG=${{ github.event.inputs.release_tag }} git checkout -b release/${{ github.event.inputs.release_tag }} + echo "$( jq --arg version ${RELEASE_TAG:1} '.version = $version' lib/user-interface/react/package.json )" > lib/user-interface/react/package.json echo "$( jq --arg version ${RELEASE_TAG:1} '.version = $version' package.json )" > package.json sed -E -i -e "s/version = \"[0-9\.].+\"/version = \"${RELEASE_TAG:1}\"/g" lisa-sdk/pyproject.toml echo ${RELEASE_TAG:1} > VERSION