diff --git a/.circleci/config.yml b/.circleci/config.yml index a3625a1a..41c1f182 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -159,9 +159,9 @@ jobs: - run: 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 4 | head -1)" >> $BASH_ENV + # - run: + # name: Set App Version + # command: echo "export APP_VERSION=$(grep '"version":.*' package.json | cut -d '"' -f 4 | head -1)" >> $BASH_ENV - run: name: Publish Release command: | diff --git a/resources/circle.js b/resources/circle.js index 112fbdee..4cbac3bf 100644 --- a/resources/circle.js +++ b/resources/circle.js @@ -34,7 +34,7 @@ pkg.publish = { const {exec} = require('child_process') -exec('echo $APP_VERSION', {env: {'APP_VERSION': pkg.version}}, function (error, stdout, stderr) { +exec(`export APP_VERSION=${pkg.version} && echo $APP_VERSION`, {env: {'APP_VERSION': pkg.version}}, function (error, stdout, stderr) { console.log(stdout, stderr, error); });