diff --git a/.circleci/config.yml b/.circleci/config.yml index 1ecd9c3d9..d9ab56748 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -149,13 +149,13 @@ jobs: command: | # This file will exist if a new version was published by # our `semantic-release` command in the previous job - if [[ ! -e tmp/updated-version.txt ]]; then + if [[ ! -e platform/viewer/success_version.txt ]]; then exit 0 else # Remove npm config rm -f ./.npmrc # Set our version number using vars - export IMAGE_VERSION=$(cat tmp/updated-version.txt) + export IMAGE_VERSION=$(cat platform/viewer/success_version.txt) export IMAGE_VERSION_FULL=v$IMAGE_VERSION.${CIRCLE_BUILD_NUM} echo $IMAGE_VERSION echo $IMAGE_VERSION_FULL @@ -324,6 +324,7 @@ workflows: requires: - 'E2E: Script Tag' - 'E2E: PWA' + # Update docs.ohif.org - DOCS_PUBLISH: requires: - 'E2E: Script Tag' @@ -332,12 +333,11 @@ workflows: requires: - 'E2E: Script Tag' - 'E2E: PWA' + # Update viewer.ohif.org - VIEWER_DEMO_PUBLISH: requires: - VIEWER_DEMO_BUILD # Update hub.docker.org - # - DOCKER_PUBLISH: - # requires: - # - NPM_PUBLISH - # Update viewer.ohif.org - # Update docs.ohif.org + - DOCKER_PUBLISH: + requires: + - NPM_PUBLISH diff --git a/platform/viewer/package.json b/platform/viewer/package.json index 3c795acf9..b02803200 100644 --- a/platform/viewer/package.json +++ b/platform/viewer/package.json @@ -33,7 +33,8 @@ "test:e2e:serve": "serve -l 3000 -s dist", "test:unit": "jest --watchAll", "test:unit:ci": "jest --ci --runInBand --collectCoverage", - "prepublishOnly": "yarn run build:package" + "prepublishOnly": "yarn run build:package", + "postpublish": "node -p -e \"require('./package.json').version\" > success_version.txt" }, "files": [ "dist",