diff --git a/.circleci/config.yml b/.circleci/config.yml index 05c03651d..59c198993 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -213,16 +213,15 @@ jobs: NPM_PUBLISH: <<: *defaults steps: - # Update yarn - run: yarn -v # Checkout code and ALL Git Tags - checkout: post: - git fetch --all + # Use increasingly general patterns to restore cache - restore_cache: name: Restore Yarn and Cypress Package Cache keys: - # when lock file changes, use increasingly general patterns to restore cache - yarn-packages-{{ checksum "yarn.lock" }} - yarn-packages- - run: @@ -231,23 +230,22 @@ jobs: - save_cache: name: Save Yarn Package Cache paths: - - ~/.cache ## Cache yarn and Cypress + - ~/.cache/yarn key: yarn-packages-{{ checksum "yarn.lock" }} - run: name: Avoid hosts unknown for github - command: - mkdir ~/.ssh/ && echo -e "Host github.com\n\tStrictHostKeyChecking - no\n" > ~/.ssh/config - - run: git config --global user.email "danny.ri.brown+ohif-bot@gmail.com" - - run: git config --global user.name "ohif-bot" + command: | + rm -rf ~/.ssh + mkdir ~/.ssh/ + echo -e "Host github.com\n\tStrictHostKeyChecking no\n" > ~/.ssh/config + git config --global user.email "danny.ri.brown+ohif-bot@gmail.com" + git config --global user.name "ohif-bot" - run: - name: Authenticate with registry + name: Authenticate with NPM registry command: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > ~/repo/.npmrc - run: npx lerna version - run: npx lerna publish from-package - - # Persist :+1: - persist_to_workspace: root: ~/repo paths: .