message: ci(circleci config): publishing was broken when main branch was tagged (i.e. for releases)
diff: @@ -382,7 +382,9 @@ jobs:
  - run:
  name: 'Check if should proceed'
  command: |
  - [[ "${CIRCLE_BRANCH}" != "main" && ("${IS_DRAFT_PR}" == "TRUE" || -z "${CIRCLE_PULL_REQUEST}") ]] && echo "Should not build, stopping" && circleci-agent step halt && exit 1
  + [[ "${CIRCLE_TAG}" ]] && echo "proceed because tag is set" && exit 0
  + [[ "${CIRCLE_BRANCH}" == "main" ]] && echo "proceed because main branch" && exit 0
  + [[ "${IS_DRAFT_PR}" == "TRUE" || -z "${CIRCLE_PULL_REQUEST}" ]] && echo "Should not build because either Draft PR or branch without PR, stopping" && exit 1
  echo "proceeding"
  - setup_remote_docker:
  # a weird issue with yarn installing packages throwing EPERM errors
  