diff --git a/.circleci/config.yml b/.circleci/config.yml index fa43165f..f1370fb9 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -160,8 +160,8 @@ jobs: # name: Fix Versioning and Add Channel # command: yarn circle:script - run: - name: Set App Version - command: echo "export APP_VERSION=$(grep '"version":.*' package.json | cut -d '"' -f 16 | head -1)" >> $BASH_ENV + name: Update Version Number of App + command: sudo chmod +x resources/version.sh && ./resources/version.sh || true - run: name: Publish Release command: | diff --git a/resources/version.sh b/resources/version.sh index 10d7125a..1c756d49 100755 --- a/resources/version.sh +++ b/resources/version.sh @@ -12,4 +12,4 @@ else echo "Version unchanged, commits since stable is 0" fi - +echo "export APP_VERSION=$(node -p -e 'require("./package.json").version')" >> $BASH_ENV \ No newline at end of file