checkout:
  post:
    - nvm install && nvm alias default node

dependencies:
  pre:
    - echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc
  override:
    - yarn

test:
  override:
    - yarn lint
    - yarn type-check
    - yarn test

deployment:
  demo:
    branch: master
    commands:
      - yarn deploy-storybook
  npm:
    tag: /v[0-9]+(\.[0-9]+)*/
    commands:
      - npm run prepublishOnly
      - npm publish

checkout:
  post:
    - nvm install && nvm alias default node

dependencies:
  pre:
    - echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc
  override:
    - yarn

test:
  override:
    - yarn lint
    - yarn type-check
    - yarn test

deployment:
  demo:
    branch: master
    commands:
      - cp .env.oss .env
      - yarn deploy-storybook
  npm:
    tag: /v[0-9]+(\.[0-9]+)*/
    commands:
      - npm run prepublishOnly
      - npm publish

Copy .env file for webpack config for storybook
Copy .env file for webpack config for storybook
