machine:
    node:
        version: 5.7.0

test:
    pre:
        - npm run lint

deployment:
    prod:
        tag: /v[0-9]+(\.[0-9]+)*/
        commands:
            - npm publish || true

machine:
    node:
        version: 5.7.0

test:
    pre:
        - npm run lint

deployment:
    prod:
        tag: /v[0-9]+(\.[0-9]+)*/
        commands:
            - npm publish

Make deployment fail if npm publish fails
Make deployment fail if npm publish fails [ci skip]
