Skip to content

Commit

Permalink
fix: strip v from version tag
Browse files Browse the repository at this point in the history
  • Loading branch information
HofmannZ committed Apr 30, 2019
1 parent 23e40eb commit 7d05814
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -145,22 +145,28 @@ jobs:
command: |
cd packages/graphql
VERSION=${CIRCLE_TAG%"@beta"}
VERSION=${CIRCLE_TAG#"v"}
# patch version
~/yq w pubspec.yaml version ${CIRCLE_TAG%"@beta"} > patched_pubspec.yaml
~/yq w pubspec.yaml version $VERSION > patched_pubspec.yaml
rm pubspec.yaml
mv patched_pubspec.yaml pubspec.yaml
- run:
name: Patch pubspec with version (graphql_flutter)
command: |
cd packages/graphql_flutter
VERSION=${CIRCLE_TAG%"@beta"}
VERSION=${CIRCLE_TAG#"v"}
# patch version
~/yq w pubspec.yaml version ${CIRCLE_TAG%"@beta"} > patched_pubspec.yaml
~/yq w pubspec.yaml version $VERSION > patched_pubspec.yaml
rm pubspec.yaml
mv patched_pubspec.yaml pubspec.yaml
# patch graphql dependency version
~/yq w pubspec.yaml dependencies.graphql ^${CIRCLE_TAG%"@beta"} > patched_pubspec.yaml
~/yq w pubspec.yaml dependencies.graphql ^$VERSION > patched_pubspec.yaml
rm pubspec.yaml
mv patched_pubspec.yaml pubspec.yaml
- run:
Expand Down

0 comments on commit 7d05814

Please # to comment.