Skip to content

Commit

Permalink
use bash.env to see if something is deleting env
Browse files Browse the repository at this point in the history
  • Loading branch information
mayakoneval committed Sep 26, 2023
1 parent b8f9b6a commit 6684267
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,21 +65,21 @@ jobs:
- run:
name: Set NPM Env Vars
command: |
touch .env
touch bash.env
NPM_SANDBOX_VERSION=`node -e "console.log(require('./packages/sandbox/package.json').version)"`;
NPM_MAJOR_SANDBOX_VERSION="$(echo $NPM_SANDBOX_VERSION | cut -d'.' -f1)";
NPM_EXPLORER_VERSION=`node -e "console.log(require('./packages/explorer/package.json').version)"`;
NPM_MAJOR_EXPLORER_VERSION="$(echo $NPM_EXPLORER_VERSION | cut -d'.' -f1)";
echo "NPM_MAJOR_SANDBOX_VERSION=$(echo $NPM_MAJOR_SANDBOX_VERSION)" >> .env
- run: |
cat .env
cat bash.env
- run: |
# verify; optional step
printenv
- persist_to_workspace:
root: ~/embeddable-explorer
paths:
- .env
- bash.env
bundlewatch:
executor: node
steps:
Expand Down Expand Up @@ -264,8 +264,8 @@ jobs:
- attach_workspace:
at: ~/embeddable-explorer
- run: |
cat .env
cat .env >> $BASH_ENV
cat bash.env
cat bash.env >> $BASH_ENV
- run:
name: Build
command: |
Expand Down Expand Up @@ -315,8 +315,8 @@ jobs:
- attach_workspace:
at: ~/embeddable-explorer
- run: |
cat .env
cat .env >> $BASH_ENV
cat bash.env
cat bash.env >> $BASH_ENV
- run:
name: Upload build artifacts to CDN
command: |
Expand Down

0 comments on commit 6684267

Please sign in to comment.