ci: fix breaking change in `semantic-release` when channels are not included in the version tag
MODIFY
.circleci/config.yml
.circleci/config.yml
@@ -151,7 +151,7 @@ jobs:
command: |
cd packages/graphql
- VERSION=${CIRCLE_TAG%"@beta"}
+ VERSION=${CIRCLE_TAG}
VERSION=${VERSION#"v"}
# patch version
@@ -163,7 +163,7 @@ jobs:
command: |
cd packages/graphql_flutter
- VERSION=${CIRCLE_TAG%"@beta"}
+ VERSION=${CIRCLE_TAG}
VERSION=${VERSION#"v"}
# patch version
@@ -178,7 +178,7 @@ jobs:
- run:
name: Bump version numbers
command: |
- if [[ $CIRCLE_TAG =~ ^.*@beta.*$ ]]; then BRANCH=beta; else BRANCH=master; fi
+ if [[ $CIRCLE_TAG =~ ^.*beta.*$ ]]; then BRANCH=beta; else BRANCH=master; fi
git checkout $BRANCH
git add packages/graphql/pubspec.yaml packages/graphql_flutter/pubspec.yaml

ci: fix breaking change in `semantic-release` when channels are not included in the version tag