Skip to content

Commit

Permalink
split them up and see if they double
Browse files Browse the repository at this point in the history
  • Loading branch information
mayakoneval committed Sep 27, 2023
1 parent 4213b9c commit c1b39a2
Showing 1 changed file with 30 additions and 6 deletions.
36 changes: 30 additions & 6 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,20 +56,40 @@ commands:
paths:
- ~/.npm

set-env-vars-command:
set-explorer-npm-env-vars:
steps:
- checkout
- npm-install
- run:
name: Set NPM Env Vars
command: |
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)\n" >> bash.env
echo "NPM_MAJOR_EXPLORER_VERSION=$(echo $NPM_MAJOR_EXPLORER_VERSION)\n" >> bash.env
echo "NPM_MAJOR_EXPLORER_VERSION=$(echo $NPM_MAJOR_EXPLORER_VERSION)" >> bash.env
- run: |
cat bash.env
- run: |
# verify; optional step
printenv
- persist_to_workspace:
root: ~/embeddable-explorer
paths:
- bash.env


set-sandbox-npm-env-vars:
steps:
- checkout
- npm-install
- run:
name: Set NPM Env Vars
command: |
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)";
echo "NPM_MAJOR_SANDBOX_VERSION=$(echo $NPM_MAJOR_SANDBOX_VERSION)" >> bash.env
- run: |
cat bash.env
Expand All @@ -85,7 +105,8 @@ jobs:
set-env-vars:
executor: node
steps:
- set-env-vars-command
- set-explorer-npm-env-vars
- set-sandbox-npm-env-vars
- persist_to_workspace:
root: ~/embeddable-explorer
paths:
Expand Down Expand Up @@ -226,6 +247,9 @@ jobs:
- checkout
- attach_workspace:
at: ~/embeddable-explorer
- run: |
cat bash.env
cat bash.env >> $BASH_ENV
- run:
name: Upload build artifacts to CDN
command: |
Expand Down

0 comments on commit c1b39a2

Please sign in to comment.