version: '1.0'
steps:
  build_app:
    title: Build Application
    description: Build app
    image: node:10.8-alpine
    commands:
      - npm i
  version_check:
    title: Version Check
    description: Check that version in package.json is available
    image: node:10.8-alpine
    commands:
      - ./codefresh/version_check.sh
  publish:
    title: Publish
    description: Publish to NPM registry.
    image: node:10.8-alpine
    commands:
      - npm publish
      - echo "Successfully published version $(npm show @credsimple/run-scripts version) of @credsimple/run-scripts."
