CI: Fix bump version step (#75047)

needs brackets
This commit is contained in:
Kevin Minehart
2023-09-18 17:37:32 -05:00
committed by GitHub
parent c7ef496750
commit 49ff1b9060
2 changed files with 3 additions and 3 deletions

View File

@@ -1712,7 +1712,7 @@ steps:
name: yarn-install
- commands:
- apk add --update jq
- new_version=$(cat package.json | jq .version | sed s/pre/$DRONE_BUILD_NUMBERpre/g)
- new_version=$(cat package.json | jq .version | sed s/pre/${DRONE_BUILD_NUMBER}pre/g)
- 'echo "New version: $new_version"'
- yarn run lerna version $new_version --exact --no-git-tag-version --no-push --force-publish
-y
@@ -4202,6 +4202,6 @@ kind: secret
name: gcr_credentials
---
kind: signature
hmac: 7c1a3c428fbf63231d5ebc9edafbcc8aed44a516b636aabd4454f2e4483c0672
hmac: b7009bea932e621db567d1d9da72bd69d408c304585255e1c297dd63d60d956c
...

View File

@@ -424,7 +424,7 @@ def update_package_json_version():
],
"commands": [
"apk add --update jq",
"new_version=$(cat package.json | jq .version | sed s/pre/$DRONE_BUILD_NUMBERpre/g)",
"new_version=$(cat package.json | jq .version | sed s/pre/${DRONE_BUILD_NUMBER}pre/g)",
"echo \"New version: $new_version\"",
"yarn run lerna version $new_version --exact --no-git-tag-version --no-push --force-publish -y",
"yarn install --mode=update-lockfile",