From 1307e20d67db3f777cb3b40d368d28566f711bb6 Mon Sep 17 00:00:00 2001 From: Core <64542347+coredev-uk@users.noreply.github.com> Date: Fri, 3 Jun 2022 16:14:03 +0100 Subject: [PATCH] attempt 2 --- .circleci/config.yml | 4 ++-- resources/version.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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