From cf6f685b467956ab43413b1dd2ac389d214a9751 Mon Sep 17 00:00:00 2001 From: Anatolii Bazko Date: Thu, 12 Oct 2023 12:05:30 +0200 Subject: [PATCH] fix: setting chectl version on release (#2789) * fix: setting chectl version on release Signed-off-by: Anatolii Bazko * Update README.md Signed-off-by: Anatolii Bazko --------- Signed-off-by: Anatolii Bazko --- .../release-build-and-push-to-GH-releases.yml | 2 +- README.md | 2 +- package.json | 2 +- yarn.lock | 12 ++++++------ 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/release-build-and-push-to-GH-releases.yml b/.github/workflows/release-build-and-push-to-GH-releases.yml index 06fefb71a..65a6ab8fb 100644 --- a/.github/workflows/release-build-and-push-to-GH-releases.yml +++ b/.github/workflows/release-build-and-push-to-GH-releases.yml @@ -56,7 +56,7 @@ jobs: run: | git config --local user.name ${{ github.actor }} - sed -i "s#version\":\ \"\(.*\)\",#version\":\ \"${{ steps.TAG_UTIL.outputs.chectl_version }}\",#g" package.json + sed -i "0,/\"version\":\ \"\(.*\)\",/s/\"version\":\ \"\(.*\)\",/\"version\":\ \"${{ steps.TAG_UTIL.outputs.chectl_version }}\",/" package.json sed -i "s|INSERT-KEY-HERE|${{ secrets.SEGMENT_WRITE_KEY }}|g" src/hooks/analytics/analytics.ts git tag ${{ steps.TAG_UTIL.outputs.gh_tag }} diff --git a/README.md b/README.md index da10d0846..b98ebf615 100644 --- a/README.md +++ b/README.md @@ -656,7 +656,7 @@ FLAG DESCRIPTIONS Additionally shows the architecture, node version, operating system, and versions of plugins that the CLI is using. ``` -_See code: [@oclif/plugin-version](https://github.com/oclif/plugin-version/blob/v1.3.10/src/commands/version.ts)_ +_See code: [@oclif/plugin-version](https://github.com/oclif/plugin-version/blob/v2.0.1/src/commands/version.ts)_ diff --git a/package.json b/package.json index 7d4ff3733..b1eb27e79 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,7 @@ "@oclif/plugin-autocomplete": "^2.3.9", "@oclif/plugin-help": "^5.2.20", "@oclif/plugin-update": "^1", - "@oclif/plugin-version": "^1.3.10", + "@oclif/plugin-version": "^2.0.1", "@octokit/rest": "^19.0.5", "analytics-node": "^6.2.0", "ansi-colors": "4.1.3", diff --git a/yarn.lock b/yarn.lock index e1f089e24..49d1b3969 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1381,12 +1381,12 @@ semver "^7.3.5" tar-fs "^2.1.1" -"@oclif/plugin-version@^1.3.10": - version "1.3.10" - resolved "https://registry.yarnpkg.com/@oclif/plugin-version/-/plugin-version-1.3.10.tgz#262adba3f5b047be887f0373ec42eab1c98f5ad9" - integrity sha512-TiRZALUcv4hwGTPoTyA3nOWtRew9DT4Ge1FeYx16xnuAsWryvJe3IHXmCm6b1VYhzTJhV2XH5U1DqllrQB2YaA== +"@oclif/plugin-version@^2.0.1": + version "2.0.1" + resolved "https://registry.yarnpkg.com/@oclif/plugin-version/-/plugin-version-2.0.1.tgz#60c9bca750028d56a491da9f63f08d1c2144e74e" + integrity sha512-5gEwB74Mqbe5ob5f1Agvb8ebBH0xm/jt0iqaOEYGrYN2gLu32UgqsLpccu+LCd89C2LdzIRIQ8DR5Yro3IY8jQ== dependencies: - "@oclif/core" "^2.15.0" + "@oclif/core" "^3.0.4" "@oclif/plugin-warn-if-update-available@^2.0.44": version "2.1.0" @@ -3558,7 +3558,7 @@ detect-newline@^3.0.0: "devworkspace-operator@https://github.com/devfile/devworkspace-operator#main": version "0.0.0" - resolved "https://github.com/devfile/devworkspace-operator#23c513e837df470cd6cef54010422be87ac6a460" + resolved "https://github.com/devfile/devworkspace-operator#9c34f367103a5b361643f583aaed0aa9d7c96d8d" dezalgo@^1.0.0: version "1.0.4"