Moved environment setting outside script for more compatability

This commit is contained in:
Core 2022-08-23 11:42:11 +01:00
parent 291cb5c1ff
commit d28c9397f4
No known key found for this signature in database
GPG key ID: 2AB8327FBA02D1C0
3 changed files with 7 additions and 11 deletions

View file

@ -139,8 +139,10 @@ jobs:
- store_artifacts: - store_artifacts:
path: ~/Cider/dist/artifacts path: ~/Cider/dist/artifacts
- run: - run:
name: Update Version Number of App name: Run Version Script
command: sudo chmod +x resources/version.sh && ./resources/version.sh || true command: |
sudo chmod +x resources/version.sh && ./resources/version.sh || true
echo "export APP_VERSION=$(node -p -e 'require("./package.json").version')" >>$BASH_ENV
- run: - run:
name: Publish Release name: Publish Release
command: | command: |

View file

@ -34,11 +34,12 @@ jobs:
with: with:
fetch-depth: 0 fetch-depth: 0
- name: Change Version - name: Run Version Script
env: env:
GH_REQUEST_TOKEN: ${{ secrets.RELEASE_TOKEN }} GH_REQUEST_TOKEN: ${{ secrets.RELEASE_TOKEN }}
run: | run: |
sudo chmod +x resources/version.sh && ./resources/version.sh || true sudo chmod +x resources/version.sh && ./resources/version.sh || true
echo "APP_VERSION=$(node -p -e 'require("./package.json").version')" >>$GITHUB_ENV
- name: Sign in to EVS - name: Sign in to EVS
run: | run: |

View file

@ -27,10 +27,3 @@ if [[ ($CIRCLE_BRANCH == "main" || $GITHUB_REF_NAME == "main") && $COMMIT_SINCE_
else else
echo $CURRENT_VERSION echo $CURRENT_VERSION
fi fi
# Add the version to the environment for CI usage
if [[ $GITHUB_REF_NAME != "" ]]; then
echo "APP_VERSION=$(node -p -e 'require("./package.json").version')" >>$GITHUB_ENV
else
echo "export APP_VERSION=$(node -p -e 'require("./package.json").version')" >>$BASH_ENV
fi