obartra/ssim

View on GitHub
.circleci/config.yml

Summary

Maintainability
Test Coverage
version: 2
jobs:
  build:
    working_directory: ~/repo
    docker:
      - image: cimg/node:16.17.0
    steps:
      - checkout
      - run: ./scripts/ci.sh
      - type: deploy
        name: "Publish to npm"
        command: |
          if [ "${CIRCLE_BRANCH}" == "master" ]; then
            echo "Publishing latest release"
            echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" >> ~/.npmrc
            yarn semantic-release || true
          else
            echo "Skipping publication in non-release branch"
          fi